add names array to terminfo data.

This commit is contained in:
Christopher Jeffrey 2013-02-23 16:01:50 -06:00
parent fe0e82f046
commit fb752f1783
2 changed files with 3 additions and 1 deletions

View File

@ -85,9 +85,10 @@ Tput.prototype.parseTerminfo = function(data) {
var names = data.toString('ascii', i, i + h.namesSize - 1)
, parts = names.split('|')
, name = parts[0]
, desc = parts.slice(1).join('|');
, desc = parts.pop();
info.name = name;
info.names = parts;
info.desc = desc;
i += h.namesSize - 1;

View File

@ -9,6 +9,7 @@
strTableSize: 1388,
total: 2342 },
name: 'xterm',
names: [ 'xterm' ],
desc: 'xterm terminal emulator (X Window System)',
bools:
{ auto_left_margin: false,