diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-04-03 01:01:47 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-04-03 01:01:47 -0500 |
commit | 30f95efebb4ce102cdae25e0c837709f830a106d (patch) | |
tree | 1631ea329c98910b0db5a5c01ce402d086979772 /test/tput.rs | |
parent | 0867d1894ce27b06e7ffce7ef3d52c8048e359d1 (diff) | |
download | rust-term-30f95efebb4ce102cdae25e0c837709f830a106d.tar.gz rust-term-30f95efebb4ce102cdae25e0c837709f830a106d.zip |
add a few more examples
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])); +} |