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.
val input_line : ?history:History.t ‑> ?prompt:string ‑> ?text:string ‑> ?tab_completion:completer ‑> unit ‑> string option
">"
)History.default
. If you don't want any history ou should use History.null
None
on EOF
(i.e. the user typed ctrl + d
)val password : ?prompt:string ‑> unit ‑> string option
Prompts for a password. Displays '*' instead of typed characters.
None
on EOF