- java.lang.Object
-
- net.morimekta.terminal.input.InputPassword
-
public class InputPassword extends Object
Class that handled reading a password from terminal.It will not print out the password (hidden input) on the terminal, but may print out the length of it and current position based on char replacement. The char replacement must be a single char, or an empty string.
See
InputLine
for details on input controls.
-
-
Constructor Summary
Constructors Constructor Description InputPassword(Terminal terminal, String message)
Constructor for simple line-input.InputPassword(Terminal terminal, String message, String charReplacement)
Constructor for complete line-input.
-
-
-
Method Detail
-
readPassword
public String readPassword()
Read password from terminal.- Returns:
- The resulting line.
-
-