No matching definitions.

ansi/color

src/ansi/color.tur

4-bit, 8-bit, and 24-bit foreground / background colors.

defn

fg4

(fg4 [color-idx :int])

emit a 4-bit foreground color SGR (0-15).

color-idx0-7 standard, 8-15 bright. Out-of-range values are
clamped to [0, 15].
(fg4 1)  ; bright-... no, 1 = red.  Use (color-bright-red) for index 9.

Since: tur-ansi AN1

defn

bg4

(bg4 [color-idx :int])

emit a 4-bit background color SGR (0-15).

defn

fg8

(fg8 [idx :int])

emit an 8-bit (256-color palette) foreground SGR.

idx0-255 palette index. Clamped to [0, 255].
defn

bg8

(bg8 [idx :int])

emit an 8-bit (256-color palette) background SGR.

defn

fg24

(fg24 [r :int g :int b :int])

emit a 24-bit (true-color) foreground SGR.

r, g, b -- 0-255 channels. Clamped to [0, 255].
defn

bg24

(bg24 [r :int g :int b :int])

emit a 24-bit (true-color) background SGR.

defn

color-reset

(color-reset)

restore default foreground and background (SGR 39 49).

defn

color-black

(color-black)
defn

color-red

(color-red)
defn

color-green

(color-green)
defn

color-yellow

(color-yellow)
defn

color-blue

(color-blue)
defn

color-magenta

(color-magenta)
defn

color-cyan

(color-cyan)
defn

color-white

(color-white)
defn

color-bright-black

(color-bright-black)
defn

color-bright-red

(color-bright-red)
defn

color-bright-green

(color-bright-green)
defn

color-bright-yellow

(color-bright-yellow)
defn

color-bright-blue

(color-bright-blue)
defn

color-bright-magenta

(color-bright-magenta)
defn

color-bright-cyan

(color-bright-cyan)
defn

color-bright-white

(color-bright-white)