Package jline
Class NoInterruptUnixTerminal
- java.lang.Object
-
- jline.TerminalSupport
-
- jline.UnixTerminal
-
- jline.NoInterruptUnixTerminal
-
public class NoInterruptUnixTerminal extends UnixTerminal
Non-interruptible (via CTRL-C)UnixTerminal
.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class jline.TerminalSupport
DEFAULT_HEIGHT, DEFAULT_WIDTH
-
-
Constructor Summary
Constructors Constructor Description NoInterruptUnixTerminal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Remove line-buffered input by invoking "stty -icanon min 1" against the current terminal.void
restore()
Restore the original terminal configuration, which can be used when shutting down the console reader.-
Methods inherited from class jline.UnixTerminal
disableInterruptCharacter, disableLitteralNextCharacter, enableInterruptCharacter, enableLitteralNextCharacter, getBooleanCapability, getHeight, getNumericCapability, getSettings, getStringCapability, getWidth, hasWeirdWrap, setEchoEnabled
-
Methods inherited from class jline.TerminalSupport
getOutputEncoding, isAnsiSupported, isEchoEnabled, isSupported, reset, setAnsiSupported, wrapInIfNeeded, wrapOutIfNeeded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jline.Terminal
getOutputEncoding, isAnsiSupported, isEchoEnabled, isSupported, reset, wrapInIfNeeded, wrapOutIfNeeded
-
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception
Description copied from class:UnixTerminal
Remove line-buffered input by invoking "stty -icanon min 1" against the current terminal.- Specified by:
init
in interfaceTerminal
- Overrides:
init
in classUnixTerminal
- Throws:
java.lang.Exception
-
restore
public void restore() throws java.lang.Exception
Description copied from class:UnixTerminal
Restore the original terminal configuration, which can be used when shutting down the console reader. The ConsoleReader cannot be used after calling this method.- Specified by:
restore
in interfaceTerminal
- Overrides:
restore
in classUnixTerminal
- Throws:
java.lang.Exception
-
-