com.geirolz.app.toolkit.console

Members list

Type members

Classlikes

sealed trait AnsiValue

An ADT witch describes the ANSI values typed.

An ADT witch describes the ANSI values typed.

  • AnsiValue.F includes foreground colors
  • AnsiValue.B includes background colors
  • AnsiValue.S includes styles

You can combine multiple values with the combinators or with Monoid instance

 val value: AnsiValue = AnsiValue(
    foreground = AnsiValue.F.RED,
    foreground = AnsiValue.B.BLACK,
    style      = AnsiValue.S.BLINK
 )

 //or
 AnsiValue.F.RED
    .withBackground(AnsiValue.B.BLACK)
    .withStyle(AnsiValue.S.BLINK)
Foreground Background
BLACK BLACK_B
RED RED_B
GREEN GREEN_B
YELLOW YELLOW_B
BLUE BLUE_B
MAGENTA MAGENTA_B
CYAN CYAN_B
WHITE WHITE_B

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class B
class F
class S
object AnsiValue

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
AnsiValue.type