[fpc-pascal]Re: Reading the screen

Gabor DEAK JAHN djg at argus.vki.bke.hu
Fri Sep 29 19:41:21 CEST 2000

At 09/29/2000 06:29, you wrote: 

Dear Jim,

> Does anyone know how to read characters from a text-mode win32/go32 
> program? I need to gotoxy and read some information, but I can't figure out

Using ReadConsoleOutput, Win32 provides this function just for this purpose. 
You can read a character, a line or even a rectangular region with it. A 
related function, GetConsoleScreenBufferInfo can be used to get the size of 
the screen or the current position of the cursor. Naturally, there is a 
WriteConsoleOutput also to write to the console window.


Gabor DEAK JAHN -- Budapest, Hungary.
E-mail: djg at tramontana.co.hu, djg at argus.vki.bke.hu

More information about the fpc-pascal mailing list