From 48e6a8e80f89ff37c9221eebae254e9a6d079ee6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 20 Mar 2013 23:23:47 -0500 Subject: couple tweaks --- test/rl.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/rl.rs') diff --git a/test/rl.rs b/test/rl.rs index c6c3b1b..f2ad637 100644 --- a/test/rl.rs +++ b/test/rl.rs @@ -39,6 +39,7 @@ fn main () { draw_map(rows, cols); let mut (x, y) = (0u, 0u); + let mut cursor = true; loop { draw_character(x, y); match io::stdin().read_char() { @@ -47,6 +48,7 @@ fn main () { 'j' if y < rows - 1 => { draw_ground(x, y); y += 1 } 'k' if y > 0 => { draw_ground(x, y); y -= 1 } 'l' if x < cols - 1 => { draw_ground(x, y); x += 1 } + ' ' => { term::info::cursor(cursor); cursor = !cursor } _ => { } } } -- cgit v1.2.3-54-g00ecf