class

Term::Prompt::Keypress

Inherits Term::Prompt::Question / Term::Prompt::Question::Validators / Reference / Object

Constructors

new(prompt, echo = nil, keys = nil, **options)
Source

Instance methods

any_key?
Source
keypress(key, event)
Source
keys
Source
keys=(keys : Array(String))
Source
process_input(question)

Decide how to handle input from user

Source
refresh(lines, lines_to_clear)

Determine area of the screen to clear

Source