Expand description
Getting data from a human, from stdin.
This library provides methods for getting information from a human. They all work on buffered lines of input (this is how terminals work unless you put them in a different mode). They are useful for building simple interactive command line apps (for example how pacman gets confirmantion during a system upgrade on arch linux). They are also useful for learning, when you want to be able to get data easily.
Functionsยง
- read_
choice - Allow the user to choose between a set of choices, and optionally give them a default choice.
- read_
custom - Read in any type that implementd
FromStrfrom stdio. - read_
custom_ nonempty - Read in any type that implementd
FromStrfrom stdio. - read_
custom_ noquestion - Read in any type that implementd
FromStrfrom stdio. - read_
string - Get a line of text from the user.
- read_
string_ nonempty - Get a line of non-empty text from the user.
- read_
string_ noquestion - Get a line of from the user without displaying a question first.