UNPKG
@andersbakken/blessed
Version:
latest (0.1.82)
0.1.82
A high-level terminal interface library for node.js.
github.com/chjj/blessed
chjj/blessed
@andersbakken/blessed
/
bin
/
tput.js
17 lines
(13 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env node
var
blessed =
require
(
'../'
) , argv = process.
argv
.
slice
(
2
) , cmd = argv.
shift
() , tput; tput = blessed.
tput
({
terminal
: process.
env
.
TERM
,
termcap
: !!process.
env
.
USE_TERMCAP
,
extended
:
true
});
if
(tput[cmd]) { process.
stdout
.
write
(tput[cmd].
apply
(tput, argv)); }