Interactive line editing.
This implements very basic readline
abilities: backspace, left and right
arrows work as expected.
There's also a history that can be browsed through the up
and down
arrows.
">"
)
History.default
. If you don't want any history ou should use History.null
None
on EOF
(i.e. the user typed ctrl + d
)
Prompts for a password. Displays '*' instead of typed characters.
None
on EOF
Prompts for an answer. Returns true if the answer equals the given string (ignoring case), false otherwise.
choice ["a",a;"b",b]
Prompts the user to choose a between several value (associated to strings)
and returns the value chosen by the user.
None
on EOF
.