Update the docs.rs links
[tutil.git] / examples / simple.rs
blob40728959a6652b49d44e80fb5b930b806b12c5ad
1 extern crate tutil;
3 use tutil::crayon::Style;
4 use tutil::crayon::Color::*;
6 use tutil::screen;
8 fn main() {
9     println!("{}", Red.on(Black).blink().paint("Hello world!"));
10     
11     let size = screen::size().unwrap();
12     println!("The screen size is {}x{}.", size.0, size.1);