Skip to content

io::readKey

readKey()
readKey(intercept: Boolean)

ParameterTypeDescription
(optional) interceptBoolean(default: true) Whether or not to prevent the key from being displayed in the terminal

Waits until the user presses a key in the terminal.

Returns

(Dictionary) A dictionary containing information about the pressed character. { "key": name of key, "modifiers": [ list of modifiers ], }