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