public class JLineConsole extends AbstractConsole
TextConsole.Level| Modifier and Type | Field and Description |
|---|---|
static String |
ANSI_BLACK |
static String |
ANSI_BLUE |
static String |
ANSI_BOLD |
static String |
ANSI_CYAN |
static String |
ANSI_GREEN |
static String |
ANSI_PURPLE |
static String |
ANSI_RED |
static String |
ANSI_RESET |
static String |
ANSI_WHITE |
static String |
ANSI_YELLOW |
| Constructor and Description |
|---|
JLineConsole() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
error(String s,
Throwable t) |
int |
getColumns() |
jline.console.ConsoleReader |
getReader() |
int |
getRows() |
void |
print(String s) |
void |
println(String s) |
String |
readLine(String prompt) |
void |
setCompleters(Collection<jline.console.completer.Completer> completers) |
String |
toString() |
void |
warn(String s,
Throwable t) |
public static final String ANSI_RESET
public static final String ANSI_BLACK
public static final String ANSI_RED
public static final String ANSI_GREEN
public static final String ANSI_YELLOW
public static final String ANSI_BLUE
public static final String ANSI_PURPLE
public static final String ANSI_CYAN
public static final String ANSI_WHITE
public static final String ANSI_BOLD
public JLineConsole()
throws IOException
IOExceptionpublic void setCompleters(Collection<jline.console.completer.Completer> completers)
setCompleters in interface TextConsolesetCompleters in class AbstractConsolepublic int getRows()
public int getColumns()
public void clear()
public jline.console.ConsoleReader getReader()
public void print(String s)
print in interface TextConsoleprint in class AbstractConsolepublic void println(String s)
println in interface TextConsoleprintln in class AbstractConsolepublic String readLine(String prompt) throws IOException
readLine in interface TextConsolereadLine in class AbstractConsoleIOExceptionpublic void error(String s, Throwable t)
error in interface TextConsoleerror in class AbstractConsolepublic void warn(String s, Throwable t)
warn in interface TextConsolewarn in class AbstractConsoleCopyright © 2014. All rights reserved.