1extern crate nu_ansi_term;
2use nu_ansi_term::{Color::*, Style};
3
4// This example prints out the 16 basic colors.
5
6fn main() {
7 let normal = Style::default();
8
9 println!("{} {}", normal.paint("Normal"), normal.bold().paint("bold"));
10 println!("{} {}", Black.paint("Black"), Black.bold().paint("bold"));
11 println!("{} {}", Red.paint("Red"), Red.bold().paint("bold"));
12 println!("{} {}", Green.paint("Green"), Green.bold().paint("bold"));
13 println!("{} {}", Yellow.paint("Yellow"), Yellow.bold().paint("bold"));
14 println!("{} {}", Blue.paint("Blue"), Blue.bold().paint("bold"));
15 println!("{} {}", Purple.paint("Purple"), Purple.bold().paint("bold"));
16 println!("{} {}", Cyan.paint("Cyan"), Cyan.bold().paint("bold"));
17 println!("{} {}", White.paint("White"), White.bold().paint("bold"));
18}
19