From d00c8ec76c498196be8bfe2d58f27697bda9de69 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 20 Mar 2013 21:33:19 -0500 Subject: start working on a terminfo wrapper --- test/rl.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/rl.rs (limited to 'test/rl.rs') 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(); + } + } +} -- cgit v1.2.3-54-g00ecf