[fpc-pascal]Readkey
Jeff Weeks
jweeks at rci.rutgers.edu
Sat Aug 21 02:19:08 CEST 2004
I'm using the following units on Linux.
USES ports, dos, crt, graph, printer;
readkey doesn't capture keystrokes as they're typed. It reads them all
in sequence only after the user presses enter. This is unlike the way
TP reads the kbd buffer.
Am I doing something wrong? And Linux terminates kbd strings with LF.
So I guess I need to account for that. I'm converting a program which
checks for CR to back up one level on a menu. Pressing the enter key
returns LF instead.
But my main question is how to read the kbd buffer as keys are
typed.... not after the user presses enter. readkey doesn't do the
job.
Thanks!
Jeff
More information about the fpc-pascal
mailing list