Uses of Class
org.jline.utils.AttributedString
Packages that use AttributedString
Package
Description
JLine Builtins provides a collection of utility classes and implementations for common terminal
functionality.
JLine Console package provides a framework for building interactive command-line applications.
JLine 3 Reader Package - Core components for building interactive command-line interfaces.
JLine 3 Reader Implementation Package.
JLine Style package provides a comprehensive styling system for terminal output.
JLine utility classes.
JLine Widget package provides a framework for creating and managing widgets for JLine's LineReader.
-
Uses of AttributedString in org.jline.builtins
Fields in org.jline.builtins with type parameters of type AttributedStringMethods in org.jline.builtins that return AttributedStringModifier and TypeMethodDescriptionstatic AttributedString
Options.HelpException.highlight
(String msg, StyleResolver resolver) SyntaxHighlighter.highlight
(AttributedString attributedString) SyntaxHighlighter.highlight
(AttributedStringBuilder asb) static AttributedString
Options.HelpException.highlightComment
(String comment, StyleResolver resolver) static AttributedString
Options.HelpException.highlightSyntax
(String syntax, StyleResolver resolver) static AttributedString
Options.HelpException.highlightSyntax
(String syntax, StyleResolver resolver, boolean subcommands) Methods in org.jline.builtins that return types with arguments of type AttributedStringModifier and TypeMethodDescriptionprotected List
<AttributedString> Nano.computeFooter()
protected LinkedHashMap
<AttributedString, List<AttributedString>> Nano.computeSuggestions()
Initializes the suggestions map.protected LinkedHashMap
<AttributedString, List<AttributedString>> Nano.computeSuggestions()
Initializes the suggestions map.Methods in org.jline.builtins with parameters of type AttributedString -
Uses of AttributedString in org.jline.console
Methods in org.jline.console that return AttributedStringModifier and TypeMethodDescriptionCmdDesc.optionDescription
(String key) Returns the description of the specified option.Methods in org.jline.console that return types with arguments of type AttributedStringModifier and TypeMethodDescriptionArgDesc.getDescription()
Returns the description of the argument as a list of attributed strings.CmdDesc.getMainDesc()
Returns the main description of the command.CmdDesc.getOptsDesc()
Returns the descriptions of the command's options.Method parameters in org.jline.console with type arguments of type AttributedStringModifier and TypeMethodDescriptionCmdDesc.mainDesc
(List<AttributedString> mainDesc) Sets the main description of the command and returns this command description.void
CmdDesc.setMainDesc
(List<AttributedString> mainDesc) Sets the main description of the command.Constructor parameters in org.jline.console with type arguments of type AttributedStringModifierConstructorDescriptionArgDesc
(String name, List<AttributedString> description) Creates a new argument description with the specified name and description.Creates a new command description with the specified argument and option descriptions.CmdDesc
(List<AttributedString> mainDesc, List<ArgDesc> argsDesc, Map<String, List<AttributedString>> optsDesc) Creates a new command description with the specified main description, argument descriptions, and option descriptions.CmdDesc
(List<AttributedString> mainDesc, List<ArgDesc> argsDesc, Map<String, List<AttributedString>> optsDesc) Creates a new command description with the specified main description, argument descriptions, and option descriptions. -
Uses of AttributedString in org.jline.console.impl
Methods in org.jline.console.impl that return AttributedStringModifier and TypeMethodDescriptionprotected AttributedString
SystemHighlighter.doCommandHighlight
(String buffer) protected AttributedString
SystemHighlighter.doFileArgsHighlight
(LineReader reader, String buffer, List<String> words, SystemHighlighter.FileHighlightCommand fhc) protected AttributedString
SystemHighlighter.doFileOptsHighlight
(LineReader reader, String buffer, List<String> words, SystemHighlighter.FileHighlightCommand fhc) SystemHighlighter.highlight
(LineReader reader, String buffer) protected AttributedString
SystemHighlighter.systemHighlight
(LineReader reader, String buffer) Method parameters in org.jline.console.impl with type arguments of type AttributedStringModifier and TypeMethodDescriptionvoid
DefaultPrinter.setHighlightValue
(Map<String, Function<Object, AttributedString>> highlightValue) Highlight column value -
Uses of AttributedString in org.jline.reader
Methods in org.jline.reader that return AttributedStringModifier and TypeMethodDescriptionHighlighter.highlight
(LineReader reader, String buffer) Highlights the provided text buffer with appropriate styling.Methods in org.jline.reader with parameters of type AttributedStringModifier and TypeMethodDescriptionvoid
LineReader.printAbove
(AttributedString str) Prints a string before the prompt and redraw everything. -
Uses of AttributedString in org.jline.reader.impl
Fields in org.jline.reader.impl declared as AttributedStringModifier and TypeFieldDescriptionprotected AttributedString
LineReaderImpl.prompt
protected AttributedString
LineReaderImpl.rightPrompt
Fields in org.jline.reader.impl with type parameters of type AttributedStringMethods in org.jline.reader.impl that return AttributedStringModifier and TypeMethodDescriptionLineReaderImpl.getDisplayedBufferWithPrompts
(List<AttributedString> secondaryPrompts) Compute the full string to be displayed with the left, right and secondary promptsDefaultHighlighter.highlight
(LineReader reader, String buffer) Methods in org.jline.reader.impl with parameters of type AttributedStringMethod parameters in org.jline.reader.impl with type arguments of type AttributedStringModifier and TypeMethodDescriptionLineReaderImpl.getDisplayedBufferWithPrompts
(List<AttributedString> secondaryPrompts) Compute the full string to be displayed with the left, right and secondary promptsConstructors in org.jline.reader.impl with parameters of type AttributedString -
Uses of AttributedString in org.jline.style
Methods in org.jline.style that return AttributedStringModifier and TypeMethodDescriptionEvaluates a style expression and returns the result as an AttributedString.Evaluates a style expression and returns the result as an AttributedString.Evaluates a style expression with formatting and returns the result as an AttributedString.Creates a styled string by applying the specified style to the given value.Creates a styled string by applying the specified style to a formatted value. -
Uses of AttributedString in org.jline.utils
Fields in org.jline.utils declared as AttributedStringModifier and TypeFieldDescriptionprotected AttributedString
Status.borderString
static final AttributedString
AttributedString.EMPTY
An empty AttributedString with no characters.static final AttributedString
AttributedString.NEWLINE
An AttributedString containing only a newline character.final AttributedString
DiffHelper.Diff.text
The text associated with this diff operation.Fields in org.jline.utils with type parameters of type AttributedStringModifier and TypeFieldDescriptionprotected List
<AttributedString> Status.lines
protected List
<AttributedString> Display.oldLines
Methods in org.jline.utils that return AttributedStringModifier and TypeMethodDescriptionstatic AttributedString
AttributedStringBuilder.append
(CharSequence... strings) Creates an AttributedString by appending multiple character sequences.AttributedCharSequence.columnSubSequence
(int start, int stop) Returns a subsequence of this attributed string based on column positions.static AttributedString
Creates an AttributedString from an ANSI-encoded string.static AttributedString
Creates an AttributedString from an ANSI-encoded string with a specified tab size.static AttributedString
Creates an AttributedString from an ANSI-encoded string with custom tab stops.static AttributedString
Creates an AttributedString from an ANSI-encoded string with custom tab stops and alternate character set sequences.static AttributedString
Creates an AttributedString from an ANSI-encoded string, using terminal capabilities.static AttributedString
AttributedString.join
(AttributedString delimiter, Iterable<AttributedString> elements) Joins an Iterable of AttributedString objects with a delimiter.static AttributedString
AttributedString.join
(AttributedString delimiter, AttributedString... elements) Joins multiple AttributedString objects with a delimiter.AttributedString.styleMatches
(Pattern pattern, AttributedStyle style) Returns a new AttributedString with the specified style applied to all matches of the pattern.abstract AttributedString
AttributedCharSequence.subSequence
(int start, int end) AttributedString.subSequence
(int start, int end) Returns a new AttributedString that is a subsequence of this attributed string.AttributedStringBuilder.subSequence
(int start, int end) Returns a new AttributedString that is a subsequence of this attributed string builder.AttributedCharSequence.substring
(int start, int end) Returns a new AttributedString that is a substring of this attributed string.AttributedCharSequence.toAttributedString()
Converts this attributed character sequence to an AttributedString.Methods in org.jline.utils that return types with arguments of type AttributedStringModifier and TypeMethodDescriptionAttributedCharSequence.columnSplitLength
(int columns) Splits this attributed string into multiple lines based on column width.AttributedCharSequence.columnSplitLength
(int columns, boolean includeNewlines, boolean delayLineWrap) Splits this attributed string into multiple lines based on column width, with options for handling newlines and line wrapping.Methods in org.jline.utils with parameters of type AttributedStringModifier and TypeMethodDescriptionAttributedStringBuilder.append
(AttributedString str) Appends the specified AttributedString to this builder.AttributedStringBuilder.append
(AttributedString str, int start, int end) Appends a subsequence of the specified AttributedString to this builder.static List
<DiffHelper.Diff> DiffHelper.diff
(AttributedString text1, AttributedString text2) Compute a list of difference between two lines.static AttributedString
AttributedString.join
(AttributedString delimiter, Iterable<AttributedString> elements) Joins an Iterable of AttributedString objects with a delimiter.static AttributedString
AttributedString.join
(AttributedString delimiter, AttributedString... elements) Joins multiple AttributedString objects with a delimiter.Method parameters in org.jline.utils with type arguments of type AttributedStringModifier and TypeMethodDescriptionstatic AttributedString
AttributedString.join
(AttributedString delimiter, Iterable<AttributedString> elements) Joins an Iterable of AttributedString objects with a delimiter.protected void
Display.moveVisualCursorTo
(int targetPos, List<AttributedString> newLines) void
Display.update
(List<AttributedString> newLines, int targetCursorPos) Update the display according to the new lines and flushes the output.void
Display.update
(List<AttributedString> newLines, int targetCursorPos, boolean flush) Update the display according to the new lines.void
Status.update
(List<AttributedString> lines) void
Status.update
(List<AttributedString> lines, boolean flush) Returnstrue
if the cursor may be misplaced and should be updated.Constructors in org.jline.utils with parameters of type AttributedStringModifierConstructorDescriptionDiff
(DiffHelper.Operation operation, AttributedString text) Constructor. -
Uses of AttributedString in org.jline.widget
Method parameters in org.jline.widget with type arguments of type AttributedStringModifier and TypeMethodDescriptionvoid
Widgets.setDescription
(List<AttributedString> desc) Set description text to the terminal status bar