Re: [fpc-pascal]Direct writes to console buffer

2003-08-03 Thread Rich Pasco
Karl Brandt wrote: > Grab the win32 API documentation and take a look at Console Functions: > ReadConsoleOutput, WriteConsoleOutput ... Yes, I saw those, thanks.. But they don't support treating the screen buffer as an linear array of words, starting with a pointer to the first (upper left corne

Re: [fpc-pascal]Direct writes to console buffer

2003-08-03 Thread Rich Pasco
Michalis Kamburelis wrote: > Unit Video is exactly what you are looking for - it lets you write/read > characters and their attributes (text color + background + blink > attribute) directly to/from a buffer in memory and then use simple > UpdateScreen procedure to "flush" contents of this memor

Re: [fpc-pascal]Direct writes to console buffer

2003-08-03 Thread Rich Pasco
James Mills wrote: > In addition, I suggest using SDL which will work for windows. SDL is > probably a much better approach than trying to directly access video > RAM. And to makes things easier for you, once you learn to use SDL, you > could write a wrapper module so you don't have to even rewrit

Re: [fpc-pascal]Direct writes to console buffer

2003-08-03 Thread Rich Pasco
Michalis Kamburelis wrote: > Unit Video is exactly what you are looking for - it lets you write/read > characters and their attributes (text color + background + blink > attribute) directly to/from a buffer in memory and then use simple > UpdateScreen procedure to "flush" contents of this memor

[fpc-pascal]Direct writes to console buffer

2003-08-02 Thread Rich Pasco
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 do