public class VirtualConsole extends Console
| Modifier and Type | Class and Description |
|---|---|
protected class |
VirtualConsole.Props |
Console.COLOR| Modifier and Type | Field and Description |
|---|---|
protected boolean |
echo |
protected int |
height |
protected int |
width |
DEFAULT_HEIGHT, DEFAULT_WIDTH, historyout| Constructor and Description |
|---|
VirtualConsole() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillInputBuffer(char c) |
Console.COLOR |
getBackgroundColor() |
int |
getCursorX() |
int |
getCursorY() |
Console.COLOR |
getForegroundColor() |
int |
getHeight() |
PrintStream |
getInputWriter() |
String |
getMonoDisplayAsString() |
int |
getWidth() |
boolean |
isBlink() |
boolean |
isBold() |
boolean |
isSupportBlink() |
boolean |
isSupportBold() |
boolean |
isSupportColor() |
boolean |
isSupportCursor() |
boolean |
isSupportSize() |
String |
readLine(LinkedList<String> history) |
char[] |
readPassword() |
void |
reset() |
void |
resize(int width,
int height) |
void |
setBlink(boolean blink) |
void |
setBold(boolean bold) |
void |
setColor(Console.COLOR foreground,
Console.COLOR background) |
void |
setCursor(int x,
int y) |
protected void |
writeChar(char c) |
cr, create, createProgressBar, printLine, printLine, readLineappend, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, writewritepublic VirtualConsole()
throws IOException
IOExceptionpublic void reset()
public String readLine(LinkedList<String> history)
public char[] readPassword()
readPassword in class Consolepublic boolean isSupportSize()
isSupportSize in class Consolepublic void resize(int width,
int height)
public boolean isSupportCursor()
isSupportCursor in class Consolepublic int getCursorX()
getCursorX in class Consolepublic int getCursorY()
getCursorY in class Consolepublic boolean isSupportColor()
isSupportColor in class Consolepublic void setColor(Console.COLOR foreground, Console.COLOR background)
public Console.COLOR getForegroundColor()
getForegroundColor in class Consolepublic Console.COLOR getBackgroundColor()
getBackgroundColor in class Consolepublic boolean isSupportBlink()
isSupportBlink in class Consolepublic boolean isSupportBold()
isSupportBold in class Consolepublic PrintStream getInputWriter()
public String getMonoDisplayAsString()
protected void fillInputBuffer(char c)
throws IOException
IOExceptionprotected void writeChar(char c)
Copyright © 2014. All rights reserved.