public abstract class TerminalSupport extends java.lang.Object implements Terminal
Terminal instances.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
| Modifier | Constructor and Description |
|---|---|
protected |
TerminalSupport(boolean supported) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableInterruptCharacter() |
void |
enableInterruptCharacter() |
int |
getHeight() |
java.lang.String |
getOutputEncoding() |
int |
getWidth() |
boolean |
hasWeirdWrap()
Defaults to true which was the behaviour before this method was added.
|
void |
init() |
boolean |
isAnsiSupported() |
boolean |
isEchoEnabled() |
boolean |
isSupported() |
void |
reset() |
void |
restore() |
protected void |
setAnsiSupported(boolean supported) |
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)
Subclass to change behavior if needed.
|
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public void init()
throws java.lang.Exception
public void restore()
throws java.lang.Exception
public void reset()
throws java.lang.Exception
public final boolean isSupported()
isSupported in interface Terminalpublic boolean isAnsiSupported()
isAnsiSupported in interface Terminalprotected void setAnsiSupported(boolean supported)
public java.io.OutputStream wrapOutIfNeeded(java.io.OutputStream out)
wrapOutIfNeeded in interface Terminalpublic boolean hasWeirdWrap()
hasWeirdWrap 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 java.io.InputStream wrapInIfNeeded(java.io.InputStream in)
throws java.io.IOException
TerminalwrapInIfNeeded in interface Terminaljava.io.IOExceptionpublic java.lang.String getOutputEncoding()
getOutputEncoding in interface TerminalCopyright © 2018. All Rights Reserved.