[fpc-pascal]Reading the color attributes from the screen

Ken J. Wright ken at cncware.com
Wed Aug 22 19:14:33 CEST 2001


On Tuesday 21 August 2001 01:23, you wrote:
> Hi,
> is there a way to read this information from
> a linux console?
>
> Like a "Get Charater and attribute under Cursor" command.

The oCrt unit contains nReadScr, nReadScrStr, nReadScrColor, etc. functions 
for this.

Ken

>
> 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
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list