public class Console extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLEAR_SCREEN_ESCAPE_SEQUENCE |
static String |
ERASE_LINE_ESCAPE_SEQUENCE |
protected boolean |
exiting |
static String |
LINE_SEPARATOR |
static char |
LINE_SEPARATOR_CHAR |
Constructor and Description |
---|
Console() |
Modifier and Type | Method and Description |
---|---|
Console |
box(int padding,
String... lines) |
Console |
box(String... lines) |
Console |
clearScreen() |
Console |
emptyLine() |
Console |
emptyLine(int number) |
Console |
eraseLine() |
boolean |
exiting() |
Console |
goodbye() |
boolean |
isRunning() |
Console |
print(Object data) |
Console |
print(String data) |
Console |
print(String format,
Object... args) |
Console |
println() |
Console |
println(char character,
int repeat) |
Console |
println(Object line) |
Console |
println(String line) |
Console |
println(String format,
Object... args) |
Console |
promptForExit() |
Console |
separatorLine() |
Console |
separatorLine(char character) |
Console |
separatorLine(char character,
int length) |
Console |
title(String... title) |
void |
waitForExit() |
public static final String CLEAR_SCREEN_ESCAPE_SEQUENCE
public static final String ERASE_LINE_ESCAPE_SEQUENCE
public static final char LINE_SEPARATOR_CHAR
public static final String LINE_SEPARATOR
protected boolean exiting
public Console println()
public Console println(char character, int repeat)
public Console emptyLine()
public Console emptyLine(int number)
public Console separatorLine()
public Console separatorLine(char character)
public Console separatorLine(char character, int length)
public Console goodbye()
public Console clearScreen()
public Console eraseLine()
public Console promptForExit()
public void waitForExit() throws InterruptedException
InterruptedException
public boolean exiting()
public boolean isRunning()
Copyright © 2012–2016 Pi4J. All rights reserved.