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 | |
<code/>and<pre/>for code samples.