public static class TelnetConsole.ForwardingTerminal extends Object implements jline.Terminal
Terminal that forwards all methods to the wrapped delegate.| Modifier and Type | Field and Description |
|---|---|
protected jline.Terminal |
terminal |
| Constructor and Description |
|---|
ForwardingTerminal(jline.Terminal terminal) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableInterruptCharacter() |
void |
enableInterruptCharacter() |
int |
getHeight() |
String |
getOutputEncoding() |
int |
getWidth() |
boolean |
hasWeirdWrap() |
void |
init() |
boolean |
isAnsiSupported() |
boolean |
isEchoEnabled() |
boolean |
isSupported() |
void |
reset() |
void |
restore() |
void |
setEchoEnabled(boolean enabled) |
InputStream |
wrapInIfNeeded(InputStream in) |
OutputStream |
wrapOutIfNeeded(OutputStream out) |
public void init()
throws Exception
init in interface jline.TerminalExceptionpublic void restore()
throws Exception
restore in interface jline.TerminalExceptionpublic void reset()
throws Exception
reset in interface jline.TerminalExceptionpublic boolean isSupported()
isSupported in interface jline.Terminalpublic int getWidth()
getWidth in interface jline.Terminalpublic int getHeight()
getHeight in interface jline.Terminalpublic boolean isAnsiSupported()
isAnsiSupported in interface jline.Terminalpublic OutputStream wrapOutIfNeeded(OutputStream out)
wrapOutIfNeeded in interface jline.Terminalpublic InputStream wrapInIfNeeded(InputStream in) throws IOException
wrapInIfNeeded in interface jline.TerminalIOExceptionpublic boolean hasWeirdWrap()
hasWeirdWrap in interface jline.Terminalpublic boolean isEchoEnabled()
isEchoEnabled in interface jline.Terminalpublic void setEchoEnabled(boolean enabled)
setEchoEnabled in interface jline.Terminalpublic String getOutputEncoding()
getOutputEncoding in interface jline.Terminalpublic void enableInterruptCharacter()
enableInterruptCharacter in interface jline.Terminalpublic void disableInterruptCharacter()
disableInterruptCharacter in interface jline.TerminalCopyright © 2020. All rights reserved.