ec_talk
Provides the ability to ask questions of the user and get a response.
Provides the ability to ask questions of the user and get a response.
DATA TYPES
prompt() = string()
supported() = boolean() | number() | string()
type() = boolean | number | string
Functions
say(Say::string()) -> ok
Outputs the line to the screen
say(Say::string(), Args::[term()] | term()) -> ok
ask(Prompt::prompt()) -> string()
Asks the user for a response to the specified prompt.
ask_default(Prompt::prompt(), Default::string()) -> string()
Asks the user for a response to the specified prompt.
ask(Prompt::prompt(), X2::type()) -> supported()
Asks the user to respond to the prompt. Trys to return the value in the format specified by 'Type'.
ask_default(Prompt::prompt(), X2::type(), Default::supported()) -> supported()
Asks the user to respond to the prompt. Trys to return the value in the format specified by 'Type'.
ask(Prompt::prompt(), Min::number(), Max::number()) -> number()
Asks the user to respond to the number prompt with a value between min and max.