io::readKey
readKey()
readKey(intercept: Boolean)
Parameter | Type | Description |
---|---|---|
(optional) intercept | Boolean | (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 ], }