Uses of Class
org.jline.utils.AttributedString
-
Packages that use AttributedString Package Description org.jline.utils JLine utility classes. -
-
Uses of AttributedString in org.jline.utils
Fields in org.jline.utils declared as AttributedString Modifier and Type Field Description protected AttributedString
Status. borderString
static AttributedString
AttributedString. EMPTY
An empty AttributedString with no characters.static AttributedString
AttributedString. NEWLINE
An AttributedString containing only a newline character.AttributedString
DiffHelper.Diff. text
The 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. lines
protected java.util.List<AttributedString>
Display. oldLines
Methods in org.jline.utils that return AttributedString Modifier and Type Method Description static AttributedString
AttributedStringBuilder. append(java.lang.CharSequence... strings)
Creates an AttributedString by appending multiple character sequences.AttributedString
AttributedCharSequence. columnSubSequence(int start, int stop)
Returns a subsequence of this attributed string based on column positions.static AttributedString
AttributedString. fromAnsi(java.lang.String ansi)
Creates an AttributedString from an ANSI-encoded string.static AttributedString
AttributedString. fromAnsi(java.lang.String ansi, int tabs)
Creates an AttributedString from an ANSI-encoded string with a specified tab size.static AttributedString
AttributedString. 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 AttributedString
AttributedString. 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 AttributedString
AttributedString. fromAnsi(java.lang.String ansi, Terminal terminal)
Creates an AttributedString from an ANSI-encoded string, using terminal capabilities.static AttributedString
AttributedString. join(AttributedString delimiter, java.lang.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
AttributedString. styleMatches(java.util.regex.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
AttributedString. subSequence(int start, int end)
Returns a new AttributedString that is a subsequence of this attributed string.AttributedString
AttributedStringBuilder. subSequence(int start, int end)
Returns a new AttributedString that is a subsequence of this attributed string builder.AttributedString
AttributedCharSequence. substring(int start, int end)
Returns a new AttributedString that is a substring of this attributed string.AttributedString
AttributedCharSequence. 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 AttributedStringBuilder
AttributedStringBuilder. append(AttributedString str)
Appends the specified AttributedString to this builder.AttributedStringBuilder
AttributedStringBuilder. 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 AttributedString
AttributedString. join(AttributedString delimiter, java.lang.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 AttributedString Modifier and Type Method Description static AttributedString
AttributedString. join(AttributedString delimiter, java.lang.Iterable<AttributedString> elements)
Joins an Iterable of AttributedString objects with a delimiter.protected void
Display. moveVisualCursorTo(int targetPos, java.util.List<AttributedString> newLines)
void
Display. update(java.util.List<AttributedString> newLines, int targetCursorPos)
Update the display according to the new lines and flushes the output.void
Display. update(java.util.List<AttributedString> newLines, int targetCursorPos, boolean flush)
Update the display according to the new lines.void
Status. update(java.util.List<AttributedString> lines)
void
Status. update(java.util.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 AttributedString Constructor Description Diff(DiffHelper.Operation operation, AttributedString text)
Constructor.
-