blob: 2ea664f903f782b47f09f2b658d06cfdc079edba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
extern mod term;
use core::io::ReaderUtil;
fn main () {
term::info::init();
let (rows, cols) = term::ios::size();
do term::ios::preserve {
term::ios::cbreak();
do term::info::with_alternate_screen {
term::info::clear();
for uint::range(0, rows) |i| {
term::info::move(0, i);
io::print(str::repeat(".", cols));
}
io::stdin().read_char();
}
}
}
|