[fpc-pascal]Direct writes to console buffer

Rich Pasco pasco at acm.org
Sun Aug 3 06:41:29 CEST 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?

Anu suggestions would be appreciated.

     - Rich





More information about the fpc-pascal mailing list