[fpc-pascal]Reading the color attributes from the screen
Stefan Becker
becker at lufa-sp.vdlufa.de
Tue Aug 21 10:23:44 CEST 2001
Hi,
is there a way to read this information from
a linux console?
Like a "Get Charater and attribute under Cursor" command.
cheers,
Stefan
LUFA Speyer (EDV)
email: becker at lufa-sp.vdlufa.de
tel : +49 (0)6232-629542
fax : +49 (0)6232-629544
http://www.lufa-speyer.de/
-----Original Message-----
From: fpc-pascal-admin at deadlock.et.tudelft.nl
[mailto:fpc-pascal-admin at deadlock.et.tudelft.nl]On Behalf Of
James_Wilson at i2.com
Sent: Monday, August 20, 2001 5:33 PM
To: fpc-pascal at deadlock.et.tudelft.nl
Subject: Re: [fpc-pascal]Reading the color attributes from the screen
> (VGA-)Textmode has the following memory layout:
> Each cell of the screen is represented by two bytes, the first
> is the color attribute the second is the ascii character value.
> The cells are stored one after another in a linear fashion from
> left to right, line by line from top to bottom.
> [snip]
> Should do the trick (everything untested).
Untested, perhaps, but certainly enough for me to see what I was missing.
Thanks for the help...
Jim
More information about the fpc-pascal
mailing list