Package-level declarations

Types

Link copied to clipboard
sealed class Attr : Attrs
Link copied to clipboard
interface Attrs

Represents one or more [fansi.Attr]s, that can be passed around as a set or combined with other sets of [fansi.Attr]s.

Link copied to clipboard

[Attr]s to set or reset the color of your background

Link copied to clipboard
object Bold : Category
Link copied to clipboard
sealed class Category
Link copied to clipboard
Link copied to clipboard
abstract class ColorCategory(val offset: Int, val width: Int, val colorCode: Int) : Category
Link copied to clipboard
object Console
Link copied to clipboard
interface Either<L, R>
Link copied to clipboard
interface ErrorMode
Link copied to clipboard
data class EscapeAttr(val escape: String, val resetMask: Long, val applyMask: Long, val sourceName: Name) : Attr

An [Attr] represented by an fansi escape sequence

Link copied to clipboard
data class Name(val value: String)
Link copied to clipboard
data class ResetAttr(val resetMask: Long, val applyMask: Long, val sourceName: Name) : Attr

An [Attr] for which no fansi escape sequence exists

Link copied to clipboard

[Attr]s to reverse the background/foreground colors of your text, or un-reverse them

Link copied to clipboard
data class SourceName(val value: String)
Link copied to clipboard
typealias State = Long
Link copied to clipboard
class Str

Encapsulates a string with associated ANSI colors and text decorations.

Link copied to clipboard
class Trie<T>(val strings: List<Pair<String, T>>)
Link copied to clipboard

[Attr]s to enable or disable underlined text

Functions

Link copied to clipboard
fun main()
Link copied to clipboard
fun <T> T?.nullableAsList(): List<T>
Link copied to clipboard