UNPKG

301 BJavaScriptView Raw
1#!/usr/bin/env node
2
3var blessed = require('../')
4 , argv = process.argv.slice(2)
5 , cmd = argv.shift()
6 , tput;
7
8tput = blessed.tput({
9 terminal: process.env.TERM,
10 termcap: !!process.env.USE_TERMCAP,
11 extended: true
12});
13
14if (tput[cmd]) {
15 process.stdout.write(tput[cmd].apply(tput, argv));
16}