mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
fix test.
This commit is contained in:
parent
d5208b758f
commit
fbd85c660b
32
test/tput.js
32
test/tput.js
@ -1,41 +1,25 @@
|
||||
var Tput = require('../').Tput;
|
||||
|
||||
if (~process.argv.indexOf('--termcap')) {
|
||||
var tput = Tput({
|
||||
term: 'vt102',
|
||||
debug: true,
|
||||
termcap: true
|
||||
});
|
||||
console.log(tput.info);
|
||||
console.log(tput.termcap);
|
||||
process.exit(0);
|
||||
}
|
||||
var termcap = ~process.argv.indexOf('--termcap')
|
||||
, term = termcap ? 'vt102' : process.argv[2] || 'xterm';
|
||||
|
||||
var tput = Tput({
|
||||
term: process.argv[2] || 'xterm',
|
||||
term: term,
|
||||
extended: true,
|
||||
debug: true
|
||||
debug: true,
|
||||
termcap: termcap
|
||||
});
|
||||
|
||||
console.log('Max colors: %d.', tput.max_colors);
|
||||
console.log('Max colors: %d.', tput.colors);
|
||||
|
||||
//process.stdout.write(Tput.sprintf('%-10s\n', 'hello'));
|
||||
|
||||
//console.log(tput.info);
|
||||
|
||||
//tput.compile();
|
||||
|
||||
//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_foreground([4]) + 'foo' + tput.methods.set_attributes([0]));
|
||||
//console.log(tput.set_foreground(4) + 'foo' + tput.set_attributes(0));
|
||||
//console.log(tput.setaf(4) + 'foo' + tput.sgr0());
|
||||
//console.log(tput.setaf(4) + 'foo' + tput.sgr(0));
|
||||
|
||||
//tput.readTermcap();
|
||||
//console.log(tput.termcap.terms);
|
||||
|
||||
//tput.padding = true;
|
||||
//tput._parsePadding('hello$<1000/>world', console.log, function() {
|
||||
// tput._parsePadding('$<1000*>foo$<1000/>bar', console.log, process.exit);
|
||||
//tput._print('hello$<1000/>world', console.log, function() {
|
||||
// tput._print('$<1000*>foo$<1000/>bar', console.log, process.exit);
|
||||
//});
|
||||
|
Loading…
x
Reference in New Issue
Block a user