Skip to main content

Crate ansi_term_codes

Crate ansi_term_codes 

Source
Expand description

§ansi-term-codes

Crates.io docs.rs CI License

ANSI terminal escape code constants. Zero-dependency, no_std compatible.

§Usage

use ansi_term_codes::{BOLD, RED, RESET};

println!("{BOLD}{RED}error:{RESET} something went wrong");

§Constants

  • Attributes: BOLD, DIM, ITALIC, UNDERLINE, RESET
  • Colors: RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN
  • Bold colors: BOLD_RED, BOLD_GREEN

§License

Apache-2.0

Constants§

BLUE
BOLD
BOLD_GREEN
BOLD_RED
CYAN
DIM
GREEN
ITALIC
MAGENTA
RED
RESET
UNDERLINE
YELLOW