Skip to content
FutureBlitz

    Install

    Import std.term.console

    ReadKey

    std.term.console

    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.

    std/term/console.fb, line 62

    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.

    std/term/console.fb, line 65

    Report an issue with this page or with FutureBlitz on GitHub.