Class DefaultTerminal2
java.lang.Object
jline.DefaultTerminal2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleangetBooleanCapability(String capability) intgetNumericCapability(String capability) getStringCapability(String capability) intgetWidth()booleanFor terminals that don't wrap when character is written in last column, only when the next character is written.voidinit()booleanbooleanbooleanvoidreset()voidrestore()voidsetEchoEnabled(boolean enabled) When using native support, return the InputStream to use for reading characters else return the input stream passed as a parameter.When ANSI is not natively handled, the output will have to be wrapped.
-
Constructor Details
-
DefaultTerminal2
-
-
Method Details
-
init
-
restore
-
reset
-
isSupported
public boolean isSupported()- Specified by:
isSupportedin interfaceTerminal
-
getWidth
-
getHeight
-
isAnsiSupported
public boolean isAnsiSupported()- Specified by:
isAnsiSupportedin interfaceTerminal
-
wrapOutIfNeeded
Description copied from interface:TerminalWhen ANSI is not natively handled, the output will have to be wrapped.- Specified by:
wrapOutIfNeededin interfaceTerminal
-
wrapInIfNeeded
Description copied from interface:TerminalWhen using native support, return the InputStream to use for reading characters else return the input stream passed as a parameter.- Specified by:
wrapInIfNeededin interfaceTerminal- Throws:
IOException
-
hasWeirdWrap
public boolean hasWeirdWrap()Description copied from interface:TerminalFor terminals that don't wrap when character is written in last column, only when the next character is written. These are the ones that have 'am' and 'xn' termcap attributes (xterm and rxvt flavors falls under that category)- Specified by:
hasWeirdWrapin interfaceTerminal
-
isEchoEnabled
public boolean isEchoEnabled()- Specified by:
isEchoEnabledin interfaceTerminal
-
setEchoEnabled
public void setEchoEnabled(boolean enabled) - Specified by:
setEchoEnabledin interfaceTerminal
-
disableInterruptCharacter
public void disableInterruptCharacter()- Specified by:
disableInterruptCharacterin interfaceTerminal
-
enableInterruptCharacter
public void enableInterruptCharacter()- Specified by:
enableInterruptCharacterin interfaceTerminal
-
getOutputEncoding
- Specified by:
getOutputEncodingin interfaceTerminal
-
getBooleanCapability
- Specified by:
getBooleanCapabilityin interfaceTerminal2
-
getNumericCapability
- Specified by:
getNumericCapabilityin interfaceTerminal2
-
getStringCapability
- Specified by:
getStringCapabilityin interfaceTerminal2
-