aboutsummaryrefslogtreecommitdiffstats
path: root/test/tput.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/tput.rs')
-rw-r--r--test/tput.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tput.rs b/test/tput.rs
index b2cfc59..3fe9ea1 100644
--- a/test/tput.rs
+++ b/test/tput.rs
@@ -6,5 +6,9 @@ fn main () {
}
term::info::init();
- print(term::info::escape(os::args()[1]));
+ let attr: &str = os::args()[1];
+ let escape = term::info::escape(attr).expect(
+ fmt!("%s is not supported on this terminal", attr)
+ );
+ print(escape);
}