Re: Direct writting to VGA text console

From: jsimmons@acsu.buffalo.edu
Date: Mon Apr 17 2000 - 16:00:00 EST


On Mon, 17 Apr 2000, Zdenek Kabelac wrote:

> > > int fd=open("/dev/vcsa?",O_RDWR); // replace ? by console number
> > > mmap(NULL, column*lines, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 4);
> >
> > I don't think this will work. It assumes the consoles physical
> > address doesn't change -- which it does (as it scrolls).
>
> Well for now I'm just happy with
> (short*) ioremap(0xb8000, 0x2000)

Ugh!!! I hope you plan to run that only on a intel box.

-
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