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.Terminal
Exception
public void restore() throws Exception
restore
in interface jline.Terminal
Exception
public void reset() throws Exception
reset
in interface jline.Terminal
Exception
public boolean isSupported()
isSupported
in interface jline.Terminal
public int getWidth()
getWidth
in interface jline.Terminal
public int getHeight()
getHeight
in interface jline.Terminal
public boolean isAnsiSupported()
isAnsiSupported
in interface jline.Terminal
public OutputStream wrapOutIfNeeded(OutputStream out)
wrapOutIfNeeded
in interface jline.Terminal
public InputStream wrapInIfNeeded(InputStream in) throws IOException
wrapInIfNeeded
in interface jline.Terminal
IOException
public boolean hasWeirdWrap()
hasWeirdWrap
in interface jline.Terminal
public boolean isEchoEnabled()
isEchoEnabled
in interface jline.Terminal
public void setEchoEnabled(boolean enabled)
setEchoEnabled
in interface jline.Terminal
public String getOutputEncoding()
getOutputEncoding
in interface jline.Terminal
public void enableInterruptCharacter()
enableInterruptCharacter
in interface jline.Terminal
public void disableInterruptCharacter()
disableInterruptCharacter
in interface jline.Terminal
Copyright © 2022. All rights reserved.