aboutsummaryrefslogtreecommitdiffstats
path: root/test/rl.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-21 09:58:36 -0500
committerJesse Luehrs <doy@tozt.net>2013-03-21 09:58:36 -0500
commitf46dc35425f3cd16c3d05b859b0be15976212510 (patch)
treeca66e0c4d2bc109d2377a258ad5e58fd016ed0a4 /test/rl.rs
parent697ff228ce165c1964e985e26d6d7ef09e4a1a2c (diff)
downloadrust-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.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rl.rs b/test/rl.rs
index 86f6655..9b096b4 100644
--- a/test/rl.rs
+++ b/test/rl.rs
@@ -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);
}
}