io::interactiveInput
interactiveInput()
interactiveInput(prompt: String, defaultInput: String)
Parameter | Type | Description |
---|---|---|
(optional) prompt | String | Text that should be printed before the input prompt |
(optional) defaultInput | String |
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.