[−][src]Crate read_human
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 |
read_custom_nonempty | Read in any type that implementd |
read_custom_noquestion | Read in any type that implementd |
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. |