Crate efcl

source
Expand description

EFCL - Efficiency First Color Library

The most simple, small, and fast terminal color text library.

use efcl::{color, Color, bold};

fn main() {
    println!("Hello, {}!", color!(Color::BLUE, "world"));

    println!("{}!", bold!(&color!(Color::RED, "EFCL").to_string()));
}

Macros§

  • Return a String that is bold
  • Return a String with a Color added to it

Enums§

  • Color is an enum that represents the ANSI escape code for terminal colors