ColorCategory

replpp.shaded.fansi.ColorCategory
abstract class ColorCategory(offset: Int, width: Int, val colorCode: Int)(implicit catName: Name) extends 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

Attributes

Graph
Supertypes
class Category
class Object
trait Matchable
class Any
Known subtypes
object Back.type
object Color.type

Members list

Value members

Concrete methods

def True(index: Int): EscapeAttr

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

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

Attributes

def 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

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

Attributes

override def lookupAttr(applyState: Long): Attr

Attributes

Definition Classes
override def lookupEscape(applyState: Long): String

Attributes

Definition Classes
def trueIndex(r: Int, g: Int, b: Int): Int
def trueRgbEscape(r: Int, g: Int, b: Int): String

Inherited methods

def makeAttr(s: String, applyValue: Long)(implicit name: Name): EscapeAttr

Attributes

Inherited from:
Category
def makeNoneAttr(applyValue: Long)(implicit name: Name): ResetAttr

Attributes

Inherited from:
Category
def mask: Int

Attributes

Inherited from:
Category

Concrete fields

val Full: IndexedSeq[EscapeAttr]

256 color Attrs, for those terminals that support it

256 color Attrs, for those terminals that support it

Attributes

val colorCode: Int

Inherited fields

val all: Vector[Attr]

Attributes

Inherited from:
Category