[fpc-pascal]Direct writes to console buffer

Karl Brandt pascalive at bol.com.br
Sun Aug 3 14:49:15 CEST 2003

Rich Pasco wrote:

> 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?

Grab the win32 API documentation and take a look at Console Functions:
ReadConsoleOutput, WriteConsoleOutput ...


More information about the fpc-pascal mailing list