termion/examples/color.rs

11 lines
289 B
Rust
Raw Normal View History

2016-07-02 14:07:20 +01:00
extern crate termion;
use termion::{color, style};
2016-07-02 14:07:20 +01:00
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);
2016-07-02 14:07:20 +01:00
}