On 18/11/11 13:06, Martin wrote:
Not done any console apps in a long time.
If I do:
var c: char;
read(c);

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.

Henry

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to