public class NoInterruptUnixTerminal extends UnixTerminal
UnixTerminal
.UnixTerminal.UnixKey
TerminalSupport.RestoreHook
DEFAULT_HEIGHT, DEFAULT_KEYBINDINGS_PROPERTIES, DEFAULT_WIDTH
Constructor and Description |
---|
NoInterruptUnixTerminal() |
Modifier and Type | Method and 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.
|
getHeight, getSettings, getWidth, readVirtualKey, setEchoEnabled
getDefaultBindings, installShutdownHook, isAnsiSupported, isEchoEnabled, isSupported, readCharacter, removeShutdownHook, reset, setAnsiSupported
public void init() throws Exception
UnixTerminal
init
in interface Terminal
init
in class UnixTerminal
Exception
public void restore() throws Exception
UnixTerminal
restore
in interface Terminal
restore
in class UnixTerminal
Exception
Copyright © 2008-2012 Sonatype. All Rights Reserved.