diff options
Diffstat (limited to 'test/tput.rs')
-rw-r--r-- | test/tput.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/tput.rs b/test/tput.rs new file mode 100644 index 0000000..b2cfc59 --- /dev/null +++ b/test/tput.rs @@ -0,0 +1,10 @@ +extern mod term; + +fn main () { + if os::args().len() < 2 { + fail!(~"usage: tput <terminfo capability>"); + } + + term::info::init(); + print(term::info::escape(os::args()[1])); +} |