Skip to main content

Crate woad

Crate woad 

Source
Expand description

Minimal ANSI terminal colour codes, for Rust.

woad provides the smallest useful set of fixed SGR sequences for library authors. It is not a console or TUI framework.

Constantsยง

BG_BLACK
Background black.
BG_BLUE
Background blue.
BG_BRIGHT_BLACK
Background bright black.
BG_BRIGHT_BLUE
Background bright blue.
BG_BRIGHT_CYAN
Background bright cyan.
BG_BRIGHT_GREEN
Background bright green.
BG_BRIGHT_MAGENTA
Background bright magenta.
BG_BRIGHT_RED
Background bright red.
BG_BRIGHT_WHITE
Background bright white.
BG_BRIGHT_YELLOW
Background bright yellow.
BG_CYAN
Background cyan.
BG_GREEN
Background green.
BG_MAGENTA
Background magenta.
BG_RED
Background red.
BG_WHITE
Background white.
BG_YELLOW
Background yellow.
FG_BLACK
Foreground black.
FG_BLUE
Foreground blue.
FG_BRIGHT_BLACK
Foreground bright black.
FG_BRIGHT_BLUE
Foreground bright blue.
FG_BRIGHT_CYAN
Foreground bright cyan.
FG_BRIGHT_GREEN
Foreground bright green.
FG_BRIGHT_MAGENTA
Foreground bright magenta.
FG_BRIGHT_RED
Foreground bright red.
FG_BRIGHT_WHITE
Foreground bright white.
FG_BRIGHT_YELLOW
Foreground bright yellow.
FG_CYAN
Foreground cyan.
FG_GREEN
Foreground green.
FG_MAGENTA
Foreground magenta.
FG_RED
Foreground red.
FG_WHITE
Foreground white.
FG_YELLOW
Foreground yellow.
RESET
Reset all attributes.
VERSION
Crate version.