public class ANSIConsole extends Console
ANSIConsole class.
Console.COLORDEFAULT_HEIGHT, DEFAULT_WIDTH, historyout| Constructor and Description |
|---|
ANSIConsole()
Constructor for ANSIConsole.
|
ANSIConsole(InputStream in,
PrintStream out)
Constructor for ANSIConsole.
|
ANSIConsole(InputStream in,
PrintStream out,
boolean flush,
String charset)
Constructor for ANSIConsole.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
cleanup.
|
String |
colorToSequence(Console.COLOR col)
colorToSequence.
|
Console.COLOR |
getBackgroundColor()
getBackgroundColor.
|
int |
getCursorX()
getCursorX.
|
int |
getCursorY()
getCursorY.
|
Console.COLOR |
getForegroundColor()
getForegroundColor.
|
int |
getHeight()
getHeight.
|
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.
|
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.
|
cr, create, createProgressBar, printLine, printLine, readLine, readPasswordappend, 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 ANSIConsole()
Constructor for ANSIConsole.
public ANSIConsole(InputStream in, PrintStream out, boolean flush, String charset) throws UnsupportedEncodingException
Constructor for ANSIConsole.
in - a InputStream object.out - a PrintStream object.flush - a boolean.charset - a String object.UnsupportedEncodingException - if any.public ANSIConsole(InputStream in, PrintStream out)
Constructor for ANSIConsole.
in - a InputStream object.out - a PrintStream object.public String readLine(LinkedList<String> history)
readLine.
readLine in class Consolehistory - a LinkedList object.String object.public boolean isSupportSize()
isSupportSize.
isSupportSize in class Consolepublic int getHeight()
getHeight.
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 String colorToSequence(Console.COLOR col)
colorToSequence.
col - a Console.COLOR object.String object.Copyright © 2016. All Rights Reserved.