neo-blessed/bin/tput.js

10 lines
221 B
JavaScript
Raw Normal View History

2013-02-24 18:14:12 +00:00
#!/usr/bin/env node
var tput = require('../lib/tput')(process.env.TERM || 'xterm')
, argv = process.argv.slice(2)
, cmd = argv.shift();
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
}