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) |
hasWeirdWrap, isAnsiSupported, isEchoEnabled, isSupported, reset, setAnsiSupported, wrapInIfNeeded, wrapOutIfNeeded
protected TerminalLineSettings getSettings()
public void init() throws Exception
init
in interface Terminal
init
in class TerminalSupport
Exception
public void restore() throws Exception
restore
in interface Terminal
restore
in class TerminalSupport
Exception
public int getWidth()
getWidth
in interface Terminal
getWidth
in class TerminalSupport
public int getHeight()
getHeight
in interface Terminal
getHeight
in class TerminalSupport
public void setEchoEnabled(boolean enabled)
setEchoEnabled
in interface Terminal
setEchoEnabled
in class TerminalSupport
public void disableInterruptCharacter()
public void enableInterruptCharacter()
Copyright © 2014. All rights reserved.