On Mon, 17 Apr 2000, Zdenek Kabelac wrote:
> addr = ioremap(VGA_TEXT_ADDR, 1024)
>
> addr[i] = 't'
> addr[i+1] = 'e'
I guess that should be something like this
{
int fd=open("/dev/vcsa?",O_RDWR); // replace ? by console number
int lines=0,columns=0;
unsigned char *screen;
read(fd,&lines,1);
read(fd,&columns,1);
mmap(NULL, column*lines, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 4);
screen[0]='t';
screen[1]=0x20;
}
This is untested codes, (and needs rw access to /dev/vcsa?) but should
give you an idea.
W.J.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:11 EST