public interface TerminalInput
On UNIX based platforms, this provides access to the terminal. On Windows platforms, this provides access to the console.
To create an instance of this interface use the Terminals.getTerminalInput() method.
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Returns an input stream that can be used to read characters from this terminal.
|
TerminalInput |
rawMode()
Switches this terminal to raw mode.
|
void |
read(TerminalInputListener listener)
Reads characters and control keys from this terminal.
|
TerminalInput |
reset()
Resets this terminal to its default mode.
|
java.io.InputStream getInputStream()
void read(TerminalInputListener listener) throws NativeException
NativeExceptionTerminalInput rawMode() throws NativeException
NativeExceptionTerminalInput reset() throws NativeException
NativeException