diff options
Diffstat (limited to 'test/rl.rs')
-rw-r--r-- | test/rl.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/rl.rs b/test/rl.rs new file mode 100644 index 0000000..2ea664f --- /dev/null +++ b/test/rl.rs @@ -0,0 +1,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(); + } + } +} |