caseapp.core.util.fansi
Members list
Type members
Classlikes
Represents a single, atomic ANSI escape sequence that results in a color, background or
decoration being added to the output. May or may not have an escape sequence (escapeOpt), as
some attributes (e.g. Bold.Off) are not widely/directly supported by terminals and so
fansi.Str supports them by rendering a hard Attr.Reset and then re-rendering other Attrs
that are active.
Represents a single, atomic ANSI escape sequence that results in a color, background or
decoration being added to the output. May or may not have an escape sequence (escapeOpt), as
some attributes (e.g. Bold.Off) are not widely/directly supported by terminals and so
fansi.Str supports them by rendering a hard Attr.Reset and then re-rendering other Attrs
that are active.
Many of the codes were stolen shamelessly from
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- class EscapeAttrclass ResetAttr
Represents one or more fansi.Attrs, that can be passed around as a set or combined with other sets of fansi.Attrs.
Represents one or more fansi.Attrs, that can be passed around as a set or combined with other sets of fansi.Attrs.
Note that a single Attr is a subclass of Attrs. If you want to know if this contains multiple Attrs, you should check for Attrs.Multiple.
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
Represents a set of fansi.Attrs all occupying the same bit-space in the state Int
Represents a set of fansi.Attrs all occupying the same bit-space in the state Int
Attributes
- Graph
- Supertypes
- Known subtypes
- object Bold.typeclass ColorCategoryobject Back.typeobject Color.typeobject Reversed.typeobject Underlined.type
Used to control what kind of behavior you get if the a CharSequence you are trying to parse
into a fansi.Str contains an Ansi escape not recognized by Fansi as a valid color.
Encapsulates a string with associated ANSI colors and text decorations.
Encapsulates a string with associated ANSI colors and text decorations.
This is your primary data-type when you are dealing with colored fansi strings.
Contains some basic string methods, as well as some ansi methods to e.g. apply particular colors
or other decorations to particular sections of the fansi.Str. render flattens it out
into a java.lang.String with all the colors present as ANSI escapes.
Avoids using Scala collections operations in favor of util.Arrays, giving 20% (on ++) to
1000% (on
splitAt,subStringandStr.parse) speedups
Attributes
- Companion:
- object
- Graph
- Supertypes
Attrs to enable or disable underlined text