2 releases
0.1.1 | May 20, 2022 |
---|---|
0.1.0 | May 20, 2022 |
#870 in Command-line interface
12KB
212 lines
termcol
Dependency-less library for simple terminal text coloring and formating
Usage
Basic usage (checkout the examples/usage.rs file for more information)
use termcol::*;
fn main() {
println!("{}red{}", color("red"), color("reset"));
println!("{}bold{}", format("bold"), format("reset"));
println!("{}", color_string("im blue", "blue"));
}
LICENSE
This project is distributed under MIT license.
lib.rs
:
termcol
Dependency-less library for simple terminal text coloring and formating
Usage
Basic usage (checkout the examples/usage.rs file for more information)
use termcol::*;
fn main() {
println!("{}red{}", color("red"), color("reset"));
println!("{}bold{}", format("bold"), format("reset"));
println!("{}", color_string("im blue", "blue"));
}
LICENSE
This project is distributed under MIT license.