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