Crate rustcolor

source ·
Expand description

Rust Color

Rust Color is a terminal color rendering library, thats supports 3/4 bit colors, 8 bit colors, 24 bit color rendering output, compatible with windows.

ANSI Escape Codes for Terminal Graphics

The ANSI escape code standard, formally adopted as ISO/IEC 6429, defines a series of control sequences. Each control sequence begins with a Control Sequence Introducer (CSI), defined as a scape character followed immediately by a bracket: ESC[.

Modules

  • This module implements all terminal color rendering operations, color conversions, color name definitions and traits for rust color library.
  • macros
  • printer
  • style

Macros

  • Prints in terminal an output with fg red, bg black and blink tag.
  • Prints in terminal an output with fg red and bg black.
  • Prints in terminal an output with fg white and bg red.
  • Prints in terminal an output with fg green and bg black.
  • Prints in terminal an output with fg blue and bg black.
  • Prints in terminal an output with fg yellow, bg black and underline tag.
  • Prints in terminal an output with fg yellow and bg black.