Class

Prompter

Extends:

A simple class for prompting a user for input.

Public Methods
password Displays the prompt and then waits for the user to enter a response. If the ‘termios’ library is available, the user’s input will not be echoed to the terminal. The user’s response will be returned, with any trailing newline chomped.
Private Methods
echo
echo
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.