scala.tools.jline
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, wrapOutIfNeededpublic UnixTerminal()
throws java.lang.Exception
java.lang.Exceptionprotected TerminalLineSettings getSettings()
public void init()
throws java.lang.Exception
init in interface Terminalinit in class TerminalSupportjava.lang.Exceptionpublic void restore()
throws java.lang.Exception
restore in interface Terminalrestore in class TerminalSupportjava.lang.Exceptionpublic 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()