mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
16 lines
270 B
JavaScript
Executable File
16 lines
270 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
var blessed = require('../')
|
|
, argv = process.argv.slice(2)
|
|
, cmd = argv.shift()
|
|
, tput;
|
|
|
|
tput = blessed.tput({
|
|
terminal: process.env.TERM,
|
|
extended: true
|
|
});
|
|
|
|
if (tput[cmd]) {
|
|
process.stdout.write(tput[cmd].apply(tput, argv) + '\n');
|
|
}
|