Module ec_talk

Provides the ability to ask questions of the user and get a response.

Copyright © Erlware 2006-2011 ---------------------------------------------------------------------------

Authors: Eric Merritt.

Description

Provides the ability to ask questions of the user and get a response.

Data Types

prompt()

prompt() = string()

supported()

supported() = boolean() | number() | string()

type()

type() = boolean | number | string

Function Index

ask/1Asks the user for a response to the specified prompt.
ask/2Asks the user to respond to the prompt.
ask/3Asks the user to respond to the number prompt with a value between min and max.
ask_default/2Asks the user for a response to the specified prompt.
ask_default/3Asks the user to respond to the prompt.
say/1Outputs the line to the screen.
say/2

Function Details

ask/1

ask(Prompt::prompt()) -> string()

Asks the user for a response to the specified prompt.

ask/2

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/3

ask(Prompt::prompt(), Min::number(), Max::number()) -> number()

Asks the user to respond to the number prompt with a value between min and max.

ask_default/2

ask_default(Prompt::prompt(), Default::string()) -> string()

Asks the user for a response to the specified prompt.

ask_default/3

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'.

say/1

say(Say::string()) -> ok

Outputs the line to the screen

say/2

say(Say::string(), Args::[term()] | term()) -> ok


Generated by EDoc, May 1 2024, 06:09:58.