public class UnixTerminal extends TerminalSupport
DEFAULT_HEIGHT, DEFAULT_WIDTH| Constructor and Description |
|---|
UnixTerminal() |
| Modifier and Type | Method and Description |
|---|---|
void |
disableInterruptCharacter() |
void |
enableInterruptCharacter() |
int |
getHeight()
Returns the value of stty rows>/tt> param.
|
protected TerminalLineSettings |
getSettings() |
int |
getWidth()
Returns the value of stty columns param.
|
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.
|
void |
setEchoEnabled(boolean enabled) |
getOutputEncoding, hasWeirdWrap, isAnsiSupported, isEchoEnabled, isSupported, reset, setAnsiSupported, wrapInIfNeeded, wrapOutIfNeededprotected TerminalLineSettings getSettings()
public void init()
throws Exception
init in interface Terminalinit in class TerminalSupportExceptionpublic void restore()
throws Exception
restore in interface Terminalrestore in class TerminalSupportExceptionpublic int getWidth()
getWidth in interface TerminalgetWidth in class TerminalSupportpublic int getHeight()
getHeight in interface TerminalgetHeight in class TerminalSupportpublic void setEchoEnabled(boolean enabled)
setEchoEnabled in interface TerminalsetEchoEnabled in class TerminalSupportpublic void disableInterruptCharacter()
public void enableInterruptCharacter()
Copyright © 2014. All Rights Reserved.