public class VirtualConsole extends Console
VirtualConsole class.
| 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()
Constructor for VirtualConsole.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
cleanup.
|
protected void |
fillInputBuffer(char c)
fillInputBuffer.
|
Console.COLOR |
getBackgroundColor()
getBackgroundColor.
|
int |
getCursorX()
getCursorX.
|
int |
getCursorY()
getCursorY.
|
Console.COLOR |
getForegroundColor()
getForegroundColor.
|
int |
getHeight()
getHeight.
|
PrintStream |
getInputWriter()
getInputWriter.
|
String |
getMonoDisplayAsString()
getMonoDisplayAsString.
|
int |
getWidth()
getWidth.
|
boolean |
isBlink()
isBlink.
|
boolean |
isBold()
isBold.
|
boolean |
isSupportBlink()
isSupportBlink.
|
boolean |
isSupportBold()
isSupportBold.
|
boolean |
isSupportColor()
isSupportColor.
|
boolean |
isSupportCursor()
isSupportCursor.
|
boolean |
isSupportSize()
isSupportSize.
|
String |
readLine(LinkedList<String> history)
readLine.
|
char[] |
readPassword()
readPassword.
|
void |
reset()
reset.
|
void |
resize(int width,
int height)
resize.
|
void |
setBlink(boolean blink)
setBlink.
|
void |
setBold(boolean bold)
setBold.
|
void |
setColor(Console.COLOR foreground,
Console.COLOR background)
setColor.
|
void |
setCursor(int x,
int y)
setCursor.
|
protected void |
writeChar(char c)
writeChar.
|
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
Constructor for VirtualConsole.
IOException - if any.public void reset()
reset.
public String readLine(LinkedList<String> history)
readLine.
readLine in class Consolehistory - a LinkedList object.String object.public char[] readPassword()
readPassword.
readPassword in class Consolepublic boolean isSupportSize()
isSupportSize.
isSupportSize in class Consolepublic int getHeight()
getHeight.
public void resize(int width,
int height)
resize.
width - a int.height - a int.public boolean isSupportCursor()
isSupportCursor.
isSupportCursor in class Consolepublic void setCursor(int x,
int y)
setCursor.
public int getCursorX()
getCursorX.
getCursorX in class Consolepublic int getCursorY()
getCursorY.
getCursorY in class Consolepublic boolean isSupportColor()
isSupportColor.
isSupportColor in class Consolepublic void setColor(Console.COLOR foreground, Console.COLOR background)
setColor.
setColor in class Consoleforeground - a Console.COLOR object.background - a Console.COLOR object.public Console.COLOR getForegroundColor()
getForegroundColor.
getForegroundColor in class ConsoleConsole.COLOR object.public Console.COLOR getBackgroundColor()
getBackgroundColor.
getBackgroundColor in class ConsoleConsole.COLOR object.public boolean isSupportBlink()
isSupportBlink.
isSupportBlink in class Consolepublic void setBlink(boolean blink)
setBlink.
public boolean isBlink()
isBlink.
public boolean isSupportBold()
isSupportBold.
isSupportBold in class Consolepublic void setBold(boolean bold)
setBold.
public PrintStream getInputWriter()
getInputWriter.
PrintStream object.public String getMonoDisplayAsString()
getMonoDisplayAsString.
String object.protected void fillInputBuffer(char c)
throws IOException
fillInputBuffer.
c - a char.IOException - if any.protected void writeChar(char c)
writeChar.
c - a char.Copyright © 2016. All Rights Reserved.