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 booleanprivate final AttributedString(package private) static final Stringprivate final AttributedStringprivate Map<LineReader.Option, Boolean> private final StyleResolverprivate final ResourceBundle(package private) static final Stringprivate final AttributedStringprivate final AttributedString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StyleResolvervoidsetCancellableFirstPrompt(boolean cancellableFirstPrompt) protected voidsetReaderOptions(Map<LineReader.Option, Boolean> readerOptions) private static AttributedStringtoAttributedString(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
-