jline

Class UnsupportedTerminal

Implemented Interfaces:
ConsoleOperations

public class UnsupportedTerminal
extends Terminal

A no-op unsupported terminal.
Author:
Marc Prud'hommeaux

Fields inherited from interface jline.ConsoleOperations

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_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

Method Summary

void
afterReadLine(ConsoleReader reader, String prompt, Character mask)
void
beforeReadLine(ConsoleReader reader, String prompt, Character mask)
void
disableEcho()
void
enableEcho()
boolean
getEcho()
int
getTerminalHeight()
Always returng 24, since we can't access this info on Windows.
int
getTerminalWidth()
Always returng 80, since we can't access this info on Windows.
void
initializeTerminal()
boolean
isEchoEnabled()
boolean
isSupported()

Methods inherited from class jline.Terminal

afterReadLine, beforeReadLine, disableEcho, enableEcho, getDefaultBindings, getEcho, getTerminal, getTerminalHeight, getTerminalWidth, initializeTerminal, isANSISupported, isEchoEnabled, isSupported, readCharacter, readVirtualKey, resetTerminal, setupTerminal

Method Details

afterReadLine

public void afterReadLine(ConsoleReader reader,
                          String prompt,
                          Character mask)
Overrides:
afterReadLine in interface Terminal

beforeReadLine

public void beforeReadLine(ConsoleReader reader,
                           String prompt,
                           Character mask)
Overrides:
beforeReadLine in interface Terminal

disableEcho

public void disableEcho()
Overrides:
disableEcho in interface Terminal

enableEcho

public void enableEcho()
Overrides:
enableEcho in interface Terminal

getEcho

public boolean getEcho()
Overrides:
getEcho in interface Terminal

getTerminalHeight

public int getTerminalHeight()
Always returng 24, since we can't access this info on Windows.
Overrides:
getTerminalHeight in interface Terminal

getTerminalWidth

public int getTerminalWidth()
Always returng 80, since we can't access this info on Windows.
Overrides:
getTerminalWidth in interface Terminal

initializeTerminal

public void initializeTerminal()
Overrides:
initializeTerminal in interface Terminal

isEchoEnabled

public boolean isEchoEnabled()
Overrides:
isEchoEnabled in interface Terminal

isSupported

public boolean isSupported()
Overrides:
isSupported in interface Terminal