Import std.term.console
ReadKey
function
Public Function ReadKey(): KeyEvent?
The next key typed at the console, as it's typed, without showing it, or Null once the input has ended. Ctrl+C still ends the program. From a pipe or a file, each character is a key, and a line break is ENTER.
function
Public Function ReadKey(timeout: Duration): KeyEvent?
ReadKey's twin that waits for timeout at most, and gives Null when no key came by then.
Report an issue with this page or with FutureBlitz on GitHub.