fix termcap aliases.

This commit is contained in:
Christopher Jeffrey 2013-02-28 01:40:12 -06:00
parent 36df8ef3ca
commit a3bf0984ca
1 changed files with 7 additions and 0 deletions

View File

@ -1147,6 +1147,13 @@ Tput.prototype.translateTermcap = function(info) {
Object.keys(info[key]).forEach(function(cap) {
if (talias[cap]) {
out[key][talias[cap][0]] = info[key][cap];
} else {
// NOTE: Possibly include all termcap names
// in a separate alias.js file. Some are
// missing from the terminfo alias.js file
// which is why we have to do this:
// See: $ man termcap
out[key][cap] = info[key][cap];
}
});
});