RealTimeConsoleInput.getch

Get one key press from the terminal, discarding other events in the process. Returns dchar.init upon receiving end-of-file.

Be aware that this may return non-character key events, like F1, F2, arrow keys, etc., as private use Unicode characters. Check them against KeyboardEvent.Key if you like.

struct RealTimeConsoleInput
dchar
getch
(
bool nonblocking = false
)

Meta