reorganize termcap object.
This commit is contained in:
parent
07cb619214
commit
26440e76e1
|
@ -810,8 +810,7 @@ Tput.prototype.parseTermcap = function(data) {
|
|||
|
||||
if (j === 0) {
|
||||
names = field.split('|');
|
||||
term = terms[names[0]] = {};
|
||||
term.header = {
|
||||
term = terms[names[0]] = {
|
||||
name: names[0],
|
||||
names: names,
|
||||
desc: names.pop()
|
||||
|
|
Loading…
Reference in New Issue