public abstract class Prompt extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Prompt.Colors
Enumerates basic 16 terminal colors along with their
ANSI color code.
|
static class |
Prompt.TermStream
A wrapper around a
PrintStream which may or may
not support colored output via ANSI terminal control sequences. |
Modifier and Type | Method and Description |
---|---|
static String |
bg(Prompt.Colors c) |
static String |
blink() |
static String |
bold() |
static String |
dim() |
static String |
fg(Prompt.Colors c) |
static @Nullable String |
getInputLine(String prompt) |
static String |
reset() |
static String |
reverse() |
static String |
underlined() |
public static @Nullable String getInputLine(String prompt)
prompt
- prompt line displayednull
if there is no such line (typically
standard input was closed)public static String reset()
public static String bold()
public static String dim()
public static String underlined()
public static String blink()
public static String reverse()
public static String fg(Prompt.Colors c)
c
- c
public static String bg(Prompt.Colors c)
c
- c