Skip to content

io::interactiveInput

interactiveInput()
interactiveInput(prompt: String, defaultInput: String)

ParameterTypeDescription
(optional) promptStringText that should be printed before the input prompt
(optional) defaultInputString

Reads the next line from the standard input stream. This is used to get input from the user in a terminal. Handles some standard terminal shortcuts, like ctrl+w.

Returns

(String) The value given by the user.