diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-03-21 09:58:36 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-03-21 09:58:36 -0500 |
commit | f46dc35425f3cd16c3d05b859b0be15976212510 (patch) | |
tree | ca66e0c4d2bc109d2377a258ad5e58fd016ed0a4 /test/rl.rs | |
parent | 697ff228ce165c1964e985e26d6d7ef09e4a1a2c (diff) | |
download | rust-term-f46dc35425f3cd16c3d05b859b0be15976212510.tar.gz rust-term-f46dc35425f3cd16c3d05b859b0be15976212510.zip |
this actually doesn't need state, rmcup is idempotent
Diffstat (limited to 'test/rl.rs')
-rw-r--r-- | test/rl.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,11 +1,11 @@ extern mod term; use core::io::ReaderUtil; -fn term_app (body: &fn (w: &mut term::Writer)) { - let mut writer = term::Writer(true); +fn term_app (body: &fn (w: &term::Writer)) { + let writer = term::Writer(true); do term::ios::preserve { writer.alternate_screen(true); - body(&mut writer); + body(&writer); } } |