mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-24 01:38:54 +00:00
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
|
``` bash
|
||||||
$ tput.js setaf 2
|
$ tput.js setaf 2
|
||||||
$ tput.js sgr0
|
$ tput.js sgr0
|
||||||
|
$ echo "$(tput.js setaf 2)hello world$(tput.js sgr0)"
|
||||||
```
|
```
|
||||||
|
|
||||||
The higher level functionality is exposed in the main `blessed` module:
|
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();
|
, cmd = argv.shift();
|
||||||
|
|
||||||
if (tput[cmd]) {
|
if (tput[cmd]) {
|
||||||
process.stdout.write(tput[cmd].apply(tput, argv));
|
process.stdout.write(tput[cmd].apply(tput, argv) + '\n');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user