[Lazarus] read single char from STDIN

Henry Vermaak henry.vermaak at gmail.com
Fri Nov 18 17:38:44 CET 2011


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.

Henry




More information about the Lazarus mailing list