-
Notifications
You must be signed in to change notification settings - Fork 6
console
- Console.console
- Console.getConsoleReader
- Console.readChar
- Console.readCharB
- Console.readCharNB
- Console.readLine
- Console.readLinePrompt
Console.console()
Creates a new instance of the object Console.
Console.getConsoleReader() : ConsoleReader
Returns the internal ConsoleReader java object.
Console.readChar(allowed) : char
Read a character from the console. If allowed is provided only the characters on the string allowed will be considered.
Console.readCharB() : int
Low level character read from console with waiting. Will return -1 - EOF or -2 - No character available or the available character
Console.readCharNB() : number
Low level character read from the console with no waiting. Will return -1 for EOF or -2 for No character available or the available character
Console.readLine(aMaskchar) : String
Read a line from the console. Will provide a mask for introduction of passwords if aMaskchar is provided. Returns the line read. NOTE: Use Console.readLinePrompt if you are using a prompt.
Console.readLinePrompt(aPrompt, aMaskchar) : String
Read a line from the console providing aPrompt. Will provide a mask for introduction of passwords if aMaskchar is provided. Returns the line read. NOTE: Use this method instead of Console.readLine if you are using a prompt