Package org.jline.consoleui.prompt
Class ConsolePrompt.UiConfig
java.lang.Object
org.jline.consoleui.prompt.ConsolePrompt.UiConfig
- Enclosing class:
ConsolePrompt
ConsoleUI configuration: colors, cursor pointer and selected/unselected/unavailable boxes.
ConsoleUI colors are configurable using UI_COLORS environment variable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final AttributedString
(package private) static final String
private final AttributedString
private Map
<LineReader.Option, Boolean> private final StyleResolver
private final ResourceBundle
(package private) static final String
private final AttributedString
private final AttributedString
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static StyleResolver
void
setCancellableFirstPrompt
(boolean cancellableFirstPrompt) protected void
setReaderOptions
(Map<LineReader.Option, Boolean> readerOptions) private static AttributedString
toAttributedString
(StyleResolver resolver, String string, String styleKey)
-
Field Details
-
DEFAULT_UI_COLORS
- See Also:
-
UI_COLORS
- See Also:
-
indicator
-
uncheckedBox
-
checkedBox
-
resolver
-
resourceBundle
-
readerOptions
-
cancellableFirstPrompt
private boolean cancellableFirstPrompt
-
-
Constructor Details
-
UiConfig
public UiConfig() -
UiConfig
-
-
Method Details
-
toAttributedString
private static AttributedString toAttributedString(StyleResolver resolver, String string, String styleKey) -
indicator
-
uncheckedBox
-
checkedBox
-
style
-
resourceBundle
-
cancellableFirstPrompt
public boolean cancellableFirstPrompt() -
setCancellableFirstPrompt
public void setCancellableFirstPrompt(boolean cancellableFirstPrompt) -
setReaderOptions
-
readerOptions
-
resolver
-