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