
public class TTYConsoleReader extends Object implements OConsoleReader
| Modifier and Type | Field and Description |
|---|---|
static int |
BACKSPACE_CHAR |
static int |
BEGIN_CHAR |
protected OConsoleApplication |
console |
protected int |
currentPos |
static int |
DEL_CHAR |
static int |
DOWN_CHAR |
static int |
END_CHAR |
protected List<String> |
history |
protected String |
historyBuffer |
static int |
HORIZONTAL_TAB_CHAR |
protected Reader |
inStream |
static int |
LEFT_CHAR |
static int |
NEW_LINE_CHAR |
protected PrintStream |
outStream |
static int |
RIGHT_CHAR |
static int |
UNIT_SEPARATOR_CHAR |
static int |
UP_CHAR |
static int |
VERTICAL_TAB_CHAR |
| Constructor and Description |
|---|
TTYConsoleReader() |
| Modifier and Type | Method and Description |
|---|---|
OConsoleApplication |
getConsole() |
String |
readLine() |
String |
readPassword() |
void |
setConsole(OConsoleApplication iConsole) |
public static final int END_CHAR
public static final int BEGIN_CHAR
public static final int DEL_CHAR
public static final int DOWN_CHAR
public static final int UP_CHAR
public static final int RIGHT_CHAR
public static final int LEFT_CHAR
public static final int HORIZONTAL_TAB_CHAR
public static final int VERTICAL_TAB_CHAR
public static final int BACKSPACE_CHAR
public static final int NEW_LINE_CHAR
public static final int UNIT_SEPARATOR_CHAR
protected int currentPos
protected String historyBuffer
protected Reader inStream
protected PrintStream outStream
protected OConsoleApplication console
public String readPassword() throws IOException
readPassword in interface OConsoleReaderIOExceptionpublic String readLine() throws IOException
readLine in interface OConsoleReaderIOExceptionpublic OConsoleApplication getConsole()
getConsole in interface OConsoleReaderpublic void setConsole(OConsoleApplication iConsole)
setConsole in interface OConsoleReaderCopyright © 2009–2016 Orient Technologies. All rights reserved.