public interface Terminal
Modifier and Type | Method and Description |
---|---|
void |
disableInterruptCharacter() |
void |
enableInterruptCharacter() |
int |
getHeight() |
java.lang.String |
getOutputEncoding() |
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) |
java.io.InputStream |
wrapInIfNeeded(java.io.InputStream in)
When using native support, return the InputStream to use for reading characters
else return the input stream passed as a parameter.
|
java.io.OutputStream |
wrapOutIfNeeded(java.io.OutputStream out)
When ANSI is not natively handled, the output will have to be wrapped.
|
void init() throws java.lang.Exception
java.lang.Exception
void restore() throws java.lang.Exception
java.lang.Exception
void reset() throws java.lang.Exception
java.lang.Exception
boolean isSupported()
int getWidth()
int getHeight()
boolean isAnsiSupported()
java.io.OutputStream wrapOutIfNeeded(java.io.OutputStream out)
java.io.InputStream wrapInIfNeeded(java.io.InputStream in) throws java.io.IOException
java.io.IOException
boolean hasWeirdWrap()
boolean isEchoEnabled()
void setEchoEnabled(boolean enabled)
void disableInterruptCharacter()
void enableInterruptCharacter()
java.lang.String getOutputEncoding()
Copyright © 2018. All Rights Reserved.