: Here's a trick. You can map an array to thte screen.
:
:
: Type
: TextScreenChar = record
: Character: char;
: Attributes: byte;
: end;
:
: Var
: TextScreen: array[1..25,1..40] of TextChar absolute $B800:0;
:
:
: You want to read 40x17? It will be in TextScreen[17,40].Character
:
: This code here counts x and y from 1 to 80 and 1 to 25, just like GotoXY (i.e. the top-left pixel is 1x1). The method I gave in my last post counted from 0 to 79 and 0 to 24 (i.e. the top-left pixel is at 0x0), so if you take that route remember to deduct 1 from your x and y.
:
:
That's cool. But what about 50 lines EGA or less than 80*25 lines (CO40+Font8x8)? How to make it there?
NetGert
Thanx[/b] in advance