public class VirtualUnixTerminal
extends jline.UnixTerminal
ARROW_DOWN, ARROW_LEFT, ARROW_PREFIX, ARROW_RIGHT, ARROW_START, ARROW_UP, DEL_SECOND, DEL_THIRD, END_CODE, HOME_CODE, O_PREFIXABORT, ADD, BACKSPACE, CHANGE_CASE, CHANGE_META, CLEAR_LINE, CLEAR_SCREEN, COMPLETE, CR, CTRL_A, CTRL_B, CTRL_C, CTRL_D, CTRL_E, CTRL_F, CTRL_G, CTRL_K, CTRL_L, CTRL_N, CTRL_OB, CTRL_P, CTRL_QM, DELETE, DELETE_META, DELETE_NEXT_CHAR, DELETE_PREV_CHAR, DELETE_PREV_WORD, END_OF_HISTORY, END_WORD, EXIT, INSERT, KEYBOARD_BELL, KILL_LINE, KILL_LINE_PREV, MOVE_TO_BEG, MOVE_TO_END, NEWLINE, NEXT_CHAR, NEXT_HISTORY, NEXT_SPACE_WORD, NEXT_WORD, PASTE, PASTE_NEXT, PASTE_PREV, PREV_CHAR, PREV_HISTORY, PREV_SPACE_WORD, PREV_WORD, REDISPLAY, REPEAT_NEXT_CHAR, REPEAT_PREV_CHAR, REPEAT_SEARCH_NEXT, REPEAT_SEARCH_PREV, REPLACE_CHAR, REPLACE_MODE, RESET_LINE, SEARCH_NEXT, SEARCH_PREV, START_OF_HISTORY, SUBSTITUTE_CHAR, SUBSTITUTE_LINE, TO_END_WORD, TO_NEXT_CHAR, TO_PREV_CHAR, UNDO, UNKNOWN| Constructor and Description |
|---|
VirtualUnixTerminal() |
| Modifier and Type | Method and Description |
|---|---|
void |
initializeTerminal() |
boolean |
isANSISupported() |
int |
readVirtualKey(InputStream in) |
void |
restoreTerminal()
Restore the original terminal configuration, which can be used when
shutting down the console reader.
|
checkBackspace, disableEcho, enableEcho, getEcho, getSttyCommand, getTerminalHeight, getTerminalWidth, isEchoEnabled, isSupported, setSttyCommand, sttypublic void initializeTerminal()
throws IOException,
InterruptedException
initializeTerminal in class jline.UnixTerminalIOExceptionInterruptedExceptionpublic void restoreTerminal()
throws Exception
restoreTerminal in class jline.UnixTerminalExceptionpublic int readVirtualKey(InputStream in) throws IOException
readVirtualKey in class jline.UnixTerminalIOExceptionpublic boolean isANSISupported()
isANSISupported in class jline.TerminalCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.