termion/examples/color.rs

11 lines
289 B
Rust

extern crate termion;
use termion::{color, style};
fn main() {
println!("{}Red", color::Fg(color::Red));
println!("{}Blue", color::Fg(color::Blue));
println!("{}Blue'n'Bold{}", style::Bold, style::Reset);
println!("{}Just plain italic{}", style::Italic, style::Reset);
}