neo-blessed/bin/tput.js

16 lines
270 B
JavaScript
Raw Normal View History

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,
extended: true
});
2013-02-24 18:14:12 +00:00
if (tput[cmd]) {
2013-02-24 18:53:37 +00:00
process.stdout.write(tput[cmd].apply(tput, argv) + '\n');
2013-02-24 18:14:12 +00:00
}