2013-02-24 18:14:12 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
2013-07-18 22:56:05 +00:00
|
|
|
var blessed = require('../')
|
2013-02-24 18:14:12 +00:00
|
|
|
, argv = process.argv.slice(2)
|
2015-02-07 23:07:32 +00:00
|
|
|
, cmd = argv.shift()
|
|
|
|
, tput;
|
|
|
|
|
|
|
|
tput = blessed.tput({
|
|
|
|
terminal: process.env.TERM,
|
2015-07-28 04:46:54 +00:00
|
|
|
termcap: !!process.env.USE_TERMCAP,
|
2015-02-07 23:07:32 +00:00
|
|
|
extended: true
|
|
|
|
});
|
2013-02-24 18:14:12 +00:00
|
|
|
|
|
|
|
if (tput[cmd]) {
|
2015-07-28 04:46:54 +00:00
|
|
|
process.stdout.write(tput[cmd].apply(tput, argv));
|
2013-02-24 18:14:12 +00:00
|
|
|
}
|