public interface Terminal
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
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) |
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.
|
boolean isSupported()
int getWidth()
int getHeight()
boolean isAnsiSupported()
OutputStream wrapOutIfNeeded(OutputStream out)
InputStream wrapInIfNeeded(InputStream in) throws IOException
IOException
boolean hasWeirdWrap()
boolean isEchoEnabled()
void setEchoEnabled(boolean enabled)
String getOutputEncoding()
Copyright © 2017. All Rights Reserved.