[Lazarus] read single char from STDIN

Martin lazarus at mfriebe.de
Fri Nov 18 17:54:14 CET 2011


On 18/11/2011 16:38, Henry Vermaak wrote:
> On 18/11/11 16:18, Chris Kirkpatrick wrote:
>> It really needs get(c) but this function, together with put(c), which
>> were defined in Jensen & Wirth and all standard Pascals, has long been
>> missing from Turbo Pascal, and all its deriviatives such as Freepascal.
>
> How does get(c) differ from read(c)?  The problem here is with the 
> terminal buffering the characters until return is pressed, hence the 
> need for re-configuring the terminal so that each key press is sent 
> immediately.

It seems I got that working. Actually the strange thing is, it should 
have been working right from the start.
And yes it is about the config of the terminal.

It was for the console window of the debugger. And that now forwards 
individual chars.




More information about the Lazarus mailing list