Class Styles
java.lang.Object
org.jline.builtins.Styles
Provides styling utilities for JLine applications.
This class contains methods and constants for working with terminal styles and colors. It supports various style formats including:
- LS_COLORS format for file listings
- Help text styling
- Print styling
- Syntax highlighting
The class provides parsers for different style formats and resolvers to apply styles to text in the terminal.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StyleResolverGets a StyleResolver for help text using HELP_COLORS format.static booleanisStylePattern(String style) static StyleResolverlsStyle()Gets a StyleResolver for file listings using LS_COLORS format.static StyleResolverGets a StyleResolver for print output using PRNT_COLORS format.static StyleResolverstatic StyleResolver
-
Field Details
-
NANORC_THEME
- See Also:
-
ANSI_STYLES
-
-
Constructor Details
-
Styles
public Styles()
-
-
Method Details
-
lsStyle
Gets a StyleResolver for file listings using LS_COLORS format.This method creates a StyleResolver that applies styles to file listings based on the LS_COLORS environment variable or default styles if not set.
- Returns:
- a StyleResolver for file listings
-
helpStyle
Gets a StyleResolver for help text using HELP_COLORS format.This method creates a StyleResolver that applies styles to help text based on the HELP_COLORS environment variable or default styles if not set.
- Returns:
- a StyleResolver for help text
-
prntStyle
Gets a StyleResolver for print output using PRNT_COLORS format.This method creates a StyleResolver that applies styles to print output based on the PRNT_COLORS environment variable or default styles if not set.
- Returns:
- a StyleResolver for print output
-
isStylePattern
-
style
-
style
-