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
class Category
class Object
trait Matchable
class Any
object Back.type
object Color.type

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

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

override def lookupAttr(applyState: Long): Attr
Definition Classes
override def lookupEscape(applyState: Long): String
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
Inherited from:
Category
def makeNoneAttr(applyValue: Long)(implicit name: Name): ResetAttr
Inherited from:
Category
def mask: Int
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

val colorCode: Int

Inherited fields

val all: Vector[Attr]
Inherited from:
Category