[Lazarus] read single char from STDIN
henry.vermaak at gmail.com
Fri Nov 18 14:21:00 CET 2011
On 18/11/11 13:06, Martin wrote:
> Not done any console apps in a long time.
> If I do:
> var c: char;
> It will read individual files, but only after I pressed enter on my
> terminal. What is needed to read the char immediately?
This is rather platform specific, since you have to set your terminal
into non-canonical mode. You should be able to use the functions in the
keyboard unit to do this in a cross platform way.
More information about the Lazarus