mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-22 00:39:04 +00:00
fix readme and test.
This commit is contained in:
parent
f8569144ea
commit
4000eb0412
@ -18,7 +18,7 @@ string capability to a javascript function:
|
||||
var Tput = require('blessed').Tput
|
||||
, tput = Tput('xterm');
|
||||
|
||||
console.log(tput.set_attribute(34) + 'hello' + tput.set_attribute(0));
|
||||
console.log(tput.set_foreground(4) + 'hello' + tput.set_attributes(0));
|
||||
```
|
||||
|
||||
``` js
|
||||
|
@ -10,8 +10,8 @@ var tput = new Tput(process.argv[2] || 'xterm', true);
|
||||
|
||||
//tput._compile('%?%p9%t\u001b(0%e\u001b(B%;\u001b[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m');
|
||||
|
||||
//console.log(tput.methods.set_attributes([34]) + 'foo' + tput.methods.set_attributes([0]));
|
||||
//console.log(tput.set_attributes(34) + 'foo' + tput.set_attributes(0));
|
||||
//console.log(tput.methods.set_foreground([4]) + 'foo' + tput.methods.set_attributes([0]));
|
||||
//console.log(tput.set_foreground(4) + 'foo' + tput.set_attributes(0));
|
||||
|
||||
//tput.readTermcap();
|
||||
//console.log(tput.termcap.terms);
|
||||
|
Loading…
x
Reference in New Issue
Block a user