com.geirolz.app.toolkit.console.AnsiValue
See theAnsiValue companion object
An ADT witch describes the ANSI values typed.
AnsiValue.F
includes foreground colorsAnsiValue.B
includes background colorsAnsiValue.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)
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article