Package jline
Class OSvTerminal
- java.lang.Object
-
- jline.TerminalSupport
-
- jline.OSvTerminal
-
- All Implemented Interfaces:
Terminal
public class OSvTerminal extends TerminalSupport
Terminal that is used for OSv. This is seperate to unix terminal implementation because exec cannot be used as currently used by UnixTerminal. This implimentation is derrived from the implementation at https://github.com/cloudius-systems/mgmt/blob/master/crash/src/main/java/com/cloudius/cli/OSvTerminal.java authored by Or Cohen.- Since:
- 2.13
- Author:
- Or Cohen, Arun Neelicattu
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
stty
java.lang.Class<?>
sttyClass
-
Fields inherited from class jline.TerminalSupport
DEFAULT_HEIGHT, DEFAULT_WIDTH
-
-
Constructor Summary
Constructors Constructor Description OSvTerminal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
void
restore()
-
Methods inherited from class jline.TerminalSupport
disableInterruptCharacter, enableInterruptCharacter, getHeight, getOutputEncoding, getWidth, hasWeirdWrap, isAnsiSupported, isEchoEnabled, isSupported, reset, setAnsiSupported, setEchoEnabled, wrapInIfNeeded, wrapOutIfNeeded
-
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception
- Specified by:
init
in interfaceTerminal
- Overrides:
init
in classTerminalSupport
- Throws:
java.lang.Exception
-
restore
public void restore() throws java.lang.Exception
- Specified by:
restore
in interfaceTerminal
- Overrides:
restore
in classTerminalSupport
- Throws:
java.lang.Exception
-
-