[fpc-pascal]Direct writes to console buffer
L D Blake
ldblake at sympatico.ca
Sun Aug 3 08:52:57 CEST 2003
In reply to your message of August 3, 2003
> I'm trying to port some old Turbo Pascal programs to Windows 32-bit
> console utilities. They write directly to the screen buffer, which in
> the DOS world an array of Word starting at ptr(SegB800,0) (for a color
> display) or ptr(SegB000,0) for a monochrome one. Now, as Windows
> console utilities, I don't suppose it's so easy to get a pointer to
> the upper left corner of the console window, or is it?
There's an additional complication... ME, NT, 2000 and XP won't let you write
directly to the screen memory. You'll probably need to re-work the screen
access to use the through-the-drivers approach unless you are only interested
in having your stuff work on 95 and 98.
-----
L D Blake
More information about the fpc-pascal
mailing list