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ยง
- Allow the user to choose between a set of choices, and optionally give them a default choice.
- Read in any type that implementd
FromStr
from stdio. - Read in any type that implementd
FromStr
from stdio. - Read in any type that implementd
FromStr
from stdio. - Get a line of text from the user.
- Get a line of non-empty text from the user.
- Get a line of from the user without displaying a question first.