Uses of Class
org.jline.utils.AttributedString
-
Packages that use AttributedString Package Description org.jline.builtins JLine Builtins provides a collection of utility classes and implementations for common terminal functionality.org.jline.console JLine Console package provides a framework for building interactive command-line applications.org.jline.console.impl org.jline.reader JLine 3 Reader Package - Core components for building interactive command-line interfaces.org.jline.reader.impl JLine 3 Reader Implementation Package.org.jline.style JLine Style package provides a comprehensive styling system for terminal output.org.jline.utils JLine utility classes.org.jline.widget 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 AttributedString Modifier and Type Field Description protected java.util.List<AttributedString>Less. linesMethods in org.jline.builtins that return AttributedString Modifier and Type Method Description static AttributedStringOptions.HelpException. highlight(java.lang.String msg, StyleResolver resolver)AttributedStringSyntaxHighlighter. highlight(java.lang.String string)AttributedStringSyntaxHighlighter. highlight(AttributedString attributedString)AttributedStringSyntaxHighlighter. highlight(AttributedStringBuilder asb)static AttributedStringOptions.HelpException. highlightComment(java.lang.String comment, StyleResolver resolver)static AttributedStringOptions.HelpException. highlightSyntax(java.lang.String syntax, StyleResolver resolver)static AttributedStringOptions.HelpException. highlightSyntax(java.lang.String syntax, StyleResolver resolver, boolean subcommands)Methods in org.jline.builtins that return types with arguments of type AttributedString Modifier and Type Method Description protected java.util.List<AttributedString>Nano. computeFooter()protected java.util.LinkedHashMap<AttributedString,java.util.List<AttributedString>>Nano. computeSuggestions()Initializes the suggestions map.protected java.util.LinkedHashMap<AttributedString,java.util.List<AttributedString>>Nano. computeSuggestions()Initializes the suggestions map.Methods in org.jline.builtins with parameters of type AttributedString Modifier and Type Method Description AttributedStringSyntaxHighlighter. highlight(AttributedString attributedString) -
Uses of AttributedString in org.jline.console
Methods in org.jline.console that return AttributedString Modifier and Type Method Description AttributedStringCmdDesc. optionDescription(java.lang.String key)Returns the description of the specified option.Methods in org.jline.console that return types with arguments of type AttributedString Modifier and Type Method Description java.util.List<AttributedString>ArgDesc. getDescription()Returns the description of the argument as a list of attributed strings.java.util.List<AttributedString>CmdDesc. getMainDesc()Returns the main description of the command.java.util.TreeMap<java.lang.String,java.util.List<AttributedString>>CmdDesc. getOptsDesc()Returns the descriptions of the command's options.Method parameters in org.jline.console with type arguments of type AttributedString Modifier and Type Method Description CmdDescCmdDesc. mainDesc(java.util.List<AttributedString> mainDesc)Sets the main description of the command and returns this command description.voidCmdDesc. setMainDesc(java.util.List<AttributedString> mainDesc)Sets the main description of the command.Constructor parameters in org.jline.console with type arguments of type AttributedString Constructor Description ArgDesc(java.lang.String name, java.util.List<AttributedString> description)Creates a new argument description with the specified name and description.CmdDesc(java.util.List<ArgDesc> argsDesc, java.util.Map<java.lang.String,java.util.List<AttributedString>> optsDesc)Creates a new command description with the specified argument and option descriptions.CmdDesc(java.util.List<AttributedString> mainDesc, java.util.List<ArgDesc> argsDesc, java.util.Map<java.lang.String,java.util.List<AttributedString>> optsDesc)Creates a new command description with the specified main description, argument descriptions, and option descriptions.CmdDesc(java.util.List<AttributedString> mainDesc, java.util.List<ArgDesc> argsDesc, java.util.Map<java.lang.String,java.util.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 AttributedString Modifier and Type Method Description protected AttributedStringSystemHighlighter. doCommandHighlight(java.lang.String buffer)protected AttributedStringSystemHighlighter. doFileArgsHighlight(LineReader reader, java.lang.String buffer, java.util.List<java.lang.String> words, SystemHighlighter.FileHighlightCommand fhc)protected AttributedStringSystemHighlighter. doFileOptsHighlight(LineReader reader, java.lang.String buffer, java.util.List<java.lang.String> words, SystemHighlighter.FileHighlightCommand fhc)AttributedStringSystemHighlighter. highlight(LineReader reader, java.lang.String buffer)protected AttributedStringSystemHighlighter. systemHighlight(LineReader reader, java.lang.String buffer)Method parameters in org.jline.console.impl with type arguments of type AttributedString Modifier and Type Method Description voidDefaultPrinter. setHighlightValue(java.util.Map<java.lang.String,java.util.function.Function<java.lang.Object,AttributedString>> highlightValue)Highlight column value -
Uses of AttributedString in org.jline.reader
Methods in org.jline.reader that return AttributedString Modifier and Type Method Description AttributedStringHighlighter. highlight(LineReader reader, java.lang.String buffer)Highlights the provided text buffer with appropriate styling.Methods in org.jline.reader with parameters of type AttributedString Modifier and Type Method Description voidLineReader. 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 AttributedString Modifier and Type Field Description protected AttributedStringLineReaderImpl. promptprotected AttributedStringLineReaderImpl. rightPromptFields in org.jline.reader.impl with type parameters of type AttributedString Modifier and Type Field Description protected java.util.function.Supplier<AttributedString>LineReaderImpl. postMethods in org.jline.reader.impl that return AttributedString Modifier and Type Method Description AttributedStringLineReaderImpl. getDisplayedBufferWithPrompts(java.util.List<AttributedString> secondaryPrompts)Compute the full string to be displayed with the left, right and secondary promptsAttributedStringDefaultHighlighter. highlight(LineReader reader, java.lang.String buffer)Methods in org.jline.reader.impl with parameters of type AttributedString Modifier and Type Method Description voidLineReaderImpl. printAbove(AttributedString str)Method parameters in org.jline.reader.impl with type arguments of type AttributedString Modifier and Type Method Description AttributedStringLineReaderImpl. getDisplayedBufferWithPrompts(java.util.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 Constructor Description PostResult(AttributedString post, int lines, int selectedLine)PostResult(AttributedString post, int lines, int selectedLine, int columns) -
Uses of AttributedString in org.jline.style
Methods in org.jline.style that return AttributedString Modifier and Type Method Description AttributedStringStyleExpression. evaluate(java.lang.String expression)Evaluates a style expression and returns the result as an AttributedString.AttributedStringStyleFactory. evaluate(java.lang.String expression)Evaluates a style expression and returns the result as an AttributedString.AttributedStringStyleFactory. evaluate(java.lang.String format, java.lang.Object... params)Evaluates a style expression with formatting and returns the result as an AttributedString.AttributedStringStyleFactory. style(java.lang.String style, java.lang.String value)Creates a styled string by applying the specified style to the given value.AttributedStringStyleFactory. style(java.lang.String style, java.lang.String format, java.lang.Object... params)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 AttributedString Modifier and Type Field Description protected AttributedStringStatus. borderStringstatic AttributedStringAttributedString. EMPTYAn empty AttributedString with no characters.static AttributedStringAttributedString. NEWLINEAn AttributedString containing only a newline character.AttributedStringDiffHelper.Diff. textThe text associated with this diff operation.Fields in org.jline.utils with type parameters of type AttributedString Modifier and Type Field Description protected java.util.List<AttributedString>Status. linesprotected java.util.List<AttributedString>Display. oldLinesMethods in org.jline.utils that return AttributedString Modifier and Type Method Description static AttributedStringAttributedStringBuilder. append(java.lang.CharSequence... strings)Creates an AttributedString by appending multiple character sequences.AttributedStringAttributedCharSequence. columnSubSequence(int start, int stop)Returns a subsequence of this attributed string based on column positions.static AttributedStringAttributedString. fromAnsi(java.lang.String ansi)Creates an AttributedString from an ANSI-encoded string.static AttributedStringAttributedString. fromAnsi(java.lang.String ansi, int tabs)Creates an AttributedString from an ANSI-encoded string with a specified tab size.static AttributedStringAttributedString. fromAnsi(java.lang.String ansi, java.util.List<java.lang.Integer> tabs)Creates an AttributedString from an ANSI-encoded string with custom tab stops.static AttributedStringAttributedString. fromAnsi(java.lang.String ansi, java.util.List<java.lang.Integer> tabs, java.lang.String altIn, java.lang.String altOut)Creates an AttributedString from an ANSI-encoded string with custom tab stops and alternate character set sequences.static AttributedStringAttributedString. fromAnsi(java.lang.String ansi, Terminal terminal)Creates an AttributedString from an ANSI-encoded string, using terminal capabilities.static AttributedStringAttributedString. join(AttributedString delimiter, java.lang.Iterable<AttributedString> elements)Joins an Iterable of AttributedString objects with a delimiter.static AttributedStringAttributedString. join(AttributedString delimiter, AttributedString... elements)Joins multiple AttributedString objects with a delimiter.AttributedStringAttributedString. styleMatches(java.util.regex.Pattern pattern, AttributedStyle style)Returns a new AttributedString with the specified style applied to all matches of the pattern.abstract AttributedStringAttributedCharSequence. subSequence(int start, int end)AttributedStringAttributedString. subSequence(int start, int end)Returns a new AttributedString that is a subsequence of this attributed string.AttributedStringAttributedStringBuilder. subSequence(int start, int end)Returns a new AttributedString that is a subsequence of this attributed string builder.AttributedStringAttributedCharSequence. substring(int start, int end)Returns a new AttributedString that is a substring of this attributed string.AttributedStringAttributedCharSequence. toAttributedString()Converts this attributed character sequence to an AttributedString.Methods in org.jline.utils that return types with arguments of type AttributedString Modifier and Type Method Description java.util.List<AttributedString>AttributedCharSequence. columnSplitLength(int columns)Splits this attributed string into multiple lines based on column width.java.util.List<AttributedString>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 AttributedString Modifier and Type Method Description AttributedStringBuilderAttributedStringBuilder. append(AttributedString str)Appends the specified AttributedString to this builder.AttributedStringBuilderAttributedStringBuilder. append(AttributedString str, int start, int end)Appends a subsequence of the specified AttributedString to this builder.static java.util.List<DiffHelper.Diff>DiffHelper. diff(AttributedString text1, AttributedString text2)Compute a list of difference between two lines.static AttributedStringAttributedString. join(AttributedString delimiter, java.lang.Iterable<AttributedString> elements)Joins an Iterable of AttributedString objects with a delimiter.static AttributedStringAttributedString. join(AttributedString delimiter, AttributedString... elements)Joins multiple AttributedString objects with a delimiter.Method parameters in org.jline.utils with type arguments of type AttributedString Modifier and Type Method Description static AttributedStringAttributedString. join(AttributedString delimiter, java.lang.Iterable<AttributedString> elements)Joins an Iterable of AttributedString objects with a delimiter.protected voidDisplay. moveVisualCursorTo(int targetPos, java.util.List<AttributedString> newLines)voidDisplay. update(java.util.List<AttributedString> newLines, int targetCursorPos)Update the display according to the new lines and flushes the output.voidDisplay. update(java.util.List<AttributedString> newLines, int targetCursorPos, boolean flush)Update the display according to the new lines.voidStatus. update(java.util.List<AttributedString> lines)voidStatus. update(java.util.List<AttributedString> lines, boolean flush)Returnstrueif the cursor may be misplaced and should be updated.Constructors in org.jline.utils with parameters of type AttributedString Constructor Description Diff(DiffHelper.Operation operation, AttributedString text)Constructor. -
Uses of AttributedString in org.jline.widget
Method parameters in org.jline.widget with type arguments of type AttributedString Modifier and Type Method Description voidWidgets. setDescription(java.util.List<AttributedString> desc)Set description text to the terminal status bar
-