public class TTYConsoleReader extends Object implements OConsoleReader
Modifier and Type | Field and Description |
---|---|
static int |
BACKSLASH |
static int |
BACKSPACE_CHAR |
static int |
BEGIN_CHAR |
protected OConsoleApplication |
console |
static int |
CTRL |
protected int |
cursorPosition |
static int |
DEL_CHAR |
static int |
DOWN_CHAR |
static int |
END_CHAR |
static int |
ESC |
protected List<String> |
history |
protected String |
historyBuffer |
static int |
HORIZONTAL_TAB_CHAR |
protected Reader |
inStream |
static int |
LEFT_CHAR |
protected int |
maxTotalLength |
static int |
NEW_LINE_CHAR |
protected int |
oldCursorPosition |
protected int |
oldPromptLength |
protected int |
oldTextLength |
protected PrintStream |
outStream |
static int |
RIGHT_CHAR |
static int |
SEMICOLON |
static int |
UNIT_SEPARATOR_CHAR |
static int |
UP_CHAR |
static int |
VERTICAL_TAB_CHAR |
FALLBACK_CONSOLE_WIDTH
Constructor and Description |
---|
TTYConsoleReader(boolean historyEnabled) |
Modifier and Type | Method and Description |
---|---|
int |
getConsoleWidth() |
String |
readLine() |
String |
readPassword() |
void |
setConsole(OConsoleApplication iConsole) |
public static final int HORIZONTAL_TAB_CHAR
public static final int NEW_LINE_CHAR
public static final int VERTICAL_TAB_CHAR
public static final int ESC
public static final int UNIT_SEPARATOR_CHAR
public static final int CTRL
public static final int SEMICOLON
public static final int UP_CHAR
public static final int DOWN_CHAR
public static final int RIGHT_CHAR
public static final int LEFT_CHAR
public static final int END_CHAR
public static final int BEGIN_CHAR
public static final int BACKSLASH
public static final int DEL_CHAR
public static final int BACKSPACE_CHAR
protected int cursorPosition
protected int oldPromptLength
protected int oldTextLength
protected int oldCursorPosition
protected int maxTotalLength
protected String historyBuffer
protected Reader inStream
protected PrintStream outStream
protected OConsoleApplication console
public String readPassword() throws IOException
readPassword
in interface OConsoleReader
IOException
public String readLine() throws IOException
readLine
in interface OConsoleReader
IOException
public void setConsole(OConsoleApplication iConsole)
setConsole
in interface OConsoleReader
public int getConsoleWidth()
getConsoleWidth
in interface OConsoleReader
Copyright © 2009–2020 OrientDB. All rights reserved.