Simple ANSI color library

Const color_black

u8

Const color_blue

u8

Const color_bright_blue

u8

Const color_bright_cyan

u8

Const color_bright_green

u8

Const color_bright_magenta

u8

Const color_bright_red

u8

Const color_bright_white

u8

Const color_bright_yellow

u8

Const color_cyan

u8

Const color_dark_gray

u8

Const color_dark_grey

u8

Const color_green

u8

Const color_light_gray

u8

Const color_light_grey

u8

Const color_magenta

u8

Const color_red

u8

Const color_yellow

u8

Function bg

fn bg(writer: io::writer, color: u8)

Set the background color

Function color_supported

fn color_supported() -> bool

Returns true if the terminal supports color

Function esc

fn esc(writer: io::writer)

Function fg

fn fg(writer: io::writer, color: u8)

Set the foreground color

Function reset

fn reset(writer: io::writer)

Reset the foreground and background colors to default

Function set_color

fn set_color(writer: io::writer, first_char: u8, color: u8)