bright 0.1.0

Beautiful terminal color
Documentation

bright

Build Status Crates.io LICENSE

preview

Beautiful terminal color

Install

Add this in your Cargo.toml:

[dependencies]
bright = "0.1.0"

Usage

use bright::*;

fn main() {
    println!("{}", "Hello world".red().bold().bg_green());
}

Styles

Modifiers

  • .bold()
  • .dim()
  • .italic()
  • .underline()
  • .slow_blink()
  • .fast_blink()
  • .invert()
  • .hidden()
  • .cross_out()

Colors

  • .black()
  • .red()
  • .green()
  • .yellow()
  • .blue()
  • .magenta()
  • .cyan()
  • .white()

Background colors

  • .bg_black()
  • .bg_red()
  • .bg_green()
  • .bg_yellow()
  • .bg_blue()
  • .bg_magenta()
  • .bg_cyan()
  • .bg_white()