console
Console.console
Console.console()
Creates a new instance of the object Console.
Console.getConsoleReader
Console.getConsoleReader() : ConsoleReader
Returns the internal ConsoleReader java object.
Console.isAnsiSupported
Console.isAnsiSupported() : boolean
Determines if the console is able to support ansi (returns true) or not (returns false).
Console.readChar
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
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
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
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
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