home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!news
- From: S105728@umrvma.umr.edu ( Steve Poulsen)
- Newsgroups: comp.lang.pascal
- Subject: re: read char from screen
- Message-ID: <32203@adm.brl.mil>
- Date: 26 Aug 92 03:23:52 GMT
- Sender: news@adm.brl.mil
- Lines: 21
-
- Have a pointer point to the absolute address of [B800:0000] for color or
- [B000:0000] in mono. Use a record like:
-
- Location = Record
- Character:Byte;
- Attribute:Byte;
- End;
-
- Screen = Record
- Memory: Array [1..2000] Of Location;
- End;
-
- Then declare a var of Screen absolute. To read a char just figure
- the row and column (start at 0,0) Screen.Memory[x+y*80].Character
- You can also use a better record of double array for x and y.
-
- ======================================== ,--,
- Steven P. Poulsen <S105728@UMRVMA> ,' '--,
- Student of Electrical Engineering ---, ,'
- University of Missouri - Rolla ,','
- ======================================= , '
-