termion/examples/color.rs

16 lines
290 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
use std::io;
fn main() {
println!("{}Red", color::Fg(color::Red));
2016-07-02 14:07:20 +01:00
println!("{}Blue", color::Fg(color::Blue));
2016-07-02 14:07:20 +01:00
println!("{}Blue'n'Bold{}", style::Bold, style::Reset);
2016-07-02 14:07:20 +01:00
println!("{}Just plain italic", style::Italic);
2016-07-02 14:07:20 +01:00
}