Skip to content

seanmonstar/ansi.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansi.rs

A utility library in Rust to wrap blobs in ANSI character codes, giving them color and style.

Built using Cargo.

Usage

All styles can chain into new styles, by calling a relevant method. Styles can also be added together to create new ones (Red + Strike).

#![feature(unboxed_closures)]
extern crate ansi;

fn main() {
    println!("{} {}!", ansi::Blue("Hello"), ansi::Red.bold()("World"));
}

TODO

  • Docs
  • Faster

License

MPLv2.0

About

ANSI colors for Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages