repo.or.cz
/
tutil.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update the docs.rs links
[tutil.git]
/
examples
/
simple.rs
blob
40728959a6652b49d44e80fb5b930b806b12c5ad
1
extern crate tutil;
2
3
use tutil::crayon::Style;
4
use tutil::crayon::Color::*;
5
6
use tutil::screen;
7
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);
13
}