term-lab.rs
A crate to easily work with terminal styles and get terminal info.
Usage
Add this to your Cargo.toml:
[]
= "1.0.0"
Or run this command, located in your project's root directory:
Examples
use ;
// Use text styles.
println!;
// Use your terminal's color palette.
println!;
println!;
println!;
println!;
// Use a custom color palette.
println!;
println!;
// Use a style builder to print less characters and improve performance.
println!;
// Some predefined styles.
eprintln!;
eprintln!;
eprintln!;
eprintln!;
use ;
use TermInfo;
// Get the size of the terminal
debug!;
debug!;
debug!;
Expected output:

Performance
Use the style method to combine multiple styles and print less characters.
Crate [features]
None at the moment.