程序包 jline
类 UnsupportedTerminal
java.lang.Object
jline.Terminal
jline.UnsupportedTerminal
- 所有已实现的接口:
ConsoleOperations
A no-op unsupported terminal.
-
字段概要
从接口继承的字段 jline.ConsoleOperations
ABORT, 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
afterReadLine
(ConsoleReader reader, String prompt, Character mask) Invokes after the console reads a line with the prompt and mask.void
beforeReadLine
(ConsoleReader reader, String prompt, Character mask) Invokes before the console reads a line with the prompt and mask.void
Disable character echoing.void
Enable character echoing.boolean
getEcho()
Returns true if the terminal will echo all characters type.int
Always returng 24, since we can't access this info on Windows.int
Always returng 80, since we can't access this info on Windows.void
Initialize any system settings that are required for the console to be able to handle input correctly, such as setting tabtop, buffered input, and character echo.boolean
Returns false if character echoing is disabled.boolean
Returns true if this terminal is capable of initializing the terminal to use jline.从类继承的方法 jline.Terminal
getDefaultBindings, getTerminal, isANSISupported, readCharacter, readVirtualKey, resetTerminal, setupTerminal
-
构造器详细资料
-
UnsupportedTerminal
public UnsupportedTerminal()
-
-
方法详细资料
-
initializeTerminal
public void initializeTerminal()从类复制的说明:Terminal
Initialize any system settings that are required for the console to be able to handle input correctly, such as setting tabtop, buffered input, and character echo.- 指定者:
initializeTerminal
在类中Terminal
-
getEcho
public boolean getEcho()从类复制的说明:Terminal
Returns true if the terminal will echo all characters type. -
isEchoEnabled
public boolean isEchoEnabled()从类复制的说明:Terminal
Returns false if character echoing is disabled.- 指定者:
isEchoEnabled
在类中Terminal
-
enableEcho
public void enableEcho()从类复制的说明:Terminal
Enable character echoing. This can be used to re-enable character if the ConsoleReader is no longer being used.- 指定者:
enableEcho
在类中Terminal
-
disableEcho
public void disableEcho()从类复制的说明:Terminal
Disable character echoing. This can be used to manually re-enable character if the ConsoleReader has been disabled.- 指定者:
disableEcho
在类中Terminal
-
getTerminalWidth
public int getTerminalWidth()Always returng 80, since we can't access this info on Windows.- 指定者:
getTerminalWidth
在类中Terminal
-
getTerminalHeight
public int getTerminalHeight()Always returng 24, since we can't access this info on Windows.- 指定者:
getTerminalHeight
在类中Terminal
-
isSupported
public boolean isSupported()从类复制的说明:Terminal
Returns true if this terminal is capable of initializing the terminal to use jline.- 指定者:
isSupported
在类中Terminal
-
beforeReadLine
从类复制的说明:Terminal
Invokes before the console reads a line with the prompt and mask.- 覆盖:
beforeReadLine
在类中Terminal
-
afterReadLine
从类复制的说明:Terminal
Invokes after the console reads a line with the prompt and mask.- 覆盖:
afterReadLine
在类中Terminal
-