include extended header in output.

This commit is contained in:
Christopher Jeffrey 2013-03-06 04:44:48 -06:00
parent ca1bf91c52
commit 2c41e0b862
2 changed files with 11 additions and 2 deletions

View File

@ -234,7 +234,7 @@ Tput.prototype.parseTerminfo = function(data) {
l = data.length; l = data.length;
if (i < l - 1) { if (i < l - 1) {
var extended = this.parseExtended(data.slice(i)); var extended = this.parseExtended(data.slice(i));
// info.header.extended = extended.header; info.header.extended = extended.header;
['bools', 'numbers', 'strings'].forEach(function(key) { ['bools', 'numbers', 'strings'].forEach(function(key) {
merge(info[key], extended[key]); merge(info[key], extended[key]);
}); });

View File

@ -7,7 +7,16 @@
numCount: 15, numCount: 15,
strCount: 413, strCount: 413,
strTableSize: 1388, strTableSize: 1388,
total: 2342 }, total: 2342,
extended:
{ dataSize: 928,
headerSize: 10,
boolCount: 2,
numCount: 1,
strCount: 57,
strTableSize: 117,
lastStrTableOffset: 680,
total: 245 } },
name: 'xterm', name: 'xterm',
names: [ 'xterm' ], names: [ 'xterm' ],
desc: 'xterm terminal emulator (X Window System)', desc: 'xterm terminal emulator (X Window System)',