bin, readme.
This commit is contained in:
parent
c9dc4f2d98
commit
58d2c383e8
|
@ -26,6 +26,7 @@ To play around with it on the command line, it works just like tput:
|
|||
``` bash
|
||||
$ tput.js setaf 2
|
||||
$ tput.js sgr0
|
||||
$ echo "$(tput.js setaf 2)hello world$(tput.js sgr0)"
|
||||
```
|
||||
|
||||
The higher level functionality is exposed in the main `blessed` module:
|
||||
|
|
|
@ -5,5 +5,5 @@ var tput = require('../lib/tput')(process.env.TERM || 'xterm')
|
|||
, cmd = argv.shift();
|
||||
|
||||
if (tput[cmd]) {
|
||||
process.stdout.write(tput[cmd].apply(tput, argv));
|
||||
process.stdout.write(tput[cmd].apply(tput, argv) + '\n');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue