ColorCategory

abstract class ColorCategory(val offset: Int, val width: Int, val colorCode: Int) : Category
  • Color a encoded on 25 bit as follow : 0 : reset value 1 - 16 : 3 bit colors 17 - 272 : 8 bit colors 273 - 16 777 388 : 24 bit colors

Inheritors

Constructors

Link copied to clipboard
constructor(offset: Int, width: Int, colorCode: Int)

Properties

Link copied to clipboard
abstract val all: List<Attr>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

256 color <>s, for those terminals that support it

Link copied to clipboard
Link copied to clipboard
open override val lookupTableWidth: Int
Link copied to clipboard
val mask: Int
Link copied to clipboard
val offset: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
open override fun lookupAttr(applyState: Long): Attr
Link copied to clipboard
open override fun lookupEscape(applyState: Long): String
Link copied to clipboard
fun makeAttr(s: String, applyValue: Long, name: Name): EscapeAttr
Link copied to clipboard
fun makeNoneAttr(applyValue: Long, name: Name): ResetAttr
Link copied to clipboard
fun True(index: Int): EscapeAttr

Create a TrueColor color, from a given index within the 16-million-color TrueColor range

fun True(r: Int, g: Int, b: Int): EscapeAttr

Create a TrueColor color, from a given (r, g, b) within the 16-million-color TrueColor range

Link copied to clipboard
fun trueIndex(r: Int, g: Int, b: Int): Int
Link copied to clipboard
fun trueRgbEscape(r: Int, g: Int, b: Int): String