| Constructor and Description |
|---|
DefaultTerminal2(Terminal terminal) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableInterruptCharacter() |
void |
enableInterruptCharacter() |
boolean |
getBooleanCapability(String capability) |
int |
getHeight() |
Integer |
getNumericCapability(String capability) |
String |
getOutputEncoding() |
String |
getStringCapability(String capability) |
int |
getWidth() |
boolean |
hasWeirdWrap()
For terminals that don't wrap when character is written in last column,
only when the next character is written.
|
void |
init() |
boolean |
isAnsiSupported() |
boolean |
isEchoEnabled() |
boolean |
isSupported() |
void |
reset() |
void |
restore() |
void |
setEchoEnabled(boolean enabled) |
InputStream |
wrapInIfNeeded(InputStream in)
When using native support, return the InputStream to use for reading characters
else return the input stream passed as a parameter.
|
OutputStream |
wrapOutIfNeeded(OutputStream out)
When ANSI is not natively handled, the output will have to be wrapped.
|
public DefaultTerminal2(Terminal terminal)
public void restore()
throws Exception
public void reset()
throws Exception
public boolean isSupported()
isSupported in interface Terminalpublic boolean isAnsiSupported()
isAnsiSupported in interface Terminalpublic OutputStream wrapOutIfNeeded(OutputStream out)
TerminalwrapOutIfNeeded in interface Terminalpublic InputStream wrapInIfNeeded(InputStream in) throws IOException
TerminalwrapInIfNeeded in interface TerminalIOExceptionpublic boolean hasWeirdWrap()
TerminalhasWeirdWrap in interface Terminalpublic boolean isEchoEnabled()
isEchoEnabled in interface Terminalpublic void setEchoEnabled(boolean enabled)
setEchoEnabled in interface Terminalpublic void disableInterruptCharacter()
disableInterruptCharacter in interface Terminalpublic void enableInterruptCharacter()
enableInterruptCharacter in interface Terminalpublic String getOutputEncoding()
getOutputEncoding in interface Terminalpublic boolean getBooleanCapability(String capability)
getBooleanCapability in interface Terminal2public Integer getNumericCapability(String capability)
getNumericCapability in interface Terminal2public String getStringCapability(String capability)
getStringCapability in interface Terminal2Copyright © 2017. All Rights Reserved.