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