Skip to main content

Crate term

Crate term 

Source

Enums§

Error
Errors returned by this crate.

Functions§

read_line
Reads a line from stdin with echo enabled (normal terminal input). The returned string does not include the trailing newline. Returns an error if the input is not valid UTF-8.
read_password
Reads a password from stdin without echoing it to the terminal. The returned string does not include the trailing newline. Returns an error if the input is not valid UTF-8. Mimics the behaviour of Go’s golang.org/x/term.ReadPassword.