public abstract class AbstractTerminals extends java.lang.Object implements Terminals
Terminals.Output| Constructor and Description |
|---|
AbstractTerminals() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract TerminalInput |
createInput() |
protected abstract AbstractTerminal |
createTerminal(Terminals.Output output) |
TerminalOutput |
getTerminal(Terminals.Output output)
Returns the terminal attached to the given output.
|
TerminalInput |
getTerminalInput()
Returns the terminal attached to system input
|
Terminals |
withAnsiOutput()
Returns a copy of this terminal access that forces terminal output to use ANSI escape sequences.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTerminal, isTerminalInputpublic Terminals withAnsiOutput()
TerminalsTerminal input is not changed.
withAnsiOutput in interface Terminalspublic TerminalOutput getTerminal(Terminals.Output output)
TerminalsgetTerminal in interface Terminalspublic TerminalInput getTerminalInput() throws NativeException
TerminalsgetTerminalInput in interface TerminalsNativeException - When the output is not attached to a terminal.protected abstract TerminalInput createInput()
protected abstract AbstractTerminal createTerminal(Terminals.Output output)