more terminfo paths.

This commit is contained in:
Christopher Jeffrey 2013-07-16 15:57:12 -05:00
parent 445e278af0
commit 7074d0da91
2 changed files with 5 additions and 2 deletions

View File

@ -1552,6 +1552,7 @@ Program.prototype.text = function(text, attr) {
return this._attr(attr, true) + text + this._attr(attr, false);
};
// NOTE: sun-color may not allow multiple params for SGR.
Program.prototype._attr = function(param, val) {
var self = this
, param = param || 'normal'

View File

@ -104,14 +104,16 @@ Tput.prototype.readTerminfo = function(data) {
if (!data) {
var file = this.terminfoFile
|| this._terminfoPrefix(this.terminfoPrefix)
|| this._terminfoPrefix(process.env.TERMINFO)
|| this._terminfoPrefix(process.env.TERMINFO_DIRS)
|| this._terminfoPrefix(process.env.HOME + '/.terminfo')
|| this._terminfoPrefix('/usr/share/terminfo')
|| this._terminfoPrefix('/usr/share/lib/terminfo')
|| this._terminfoPrefix('/usr/lib/terminfo')
|| this._terminfoPrefix('/usr/local/share/terminfo')
|| this._terminfoPrefix('/usr/local/share/lib/terminfo')
|| this._terminfoPrefix('/usr/local/lib/terminfo')
|| this._terminfoPrefix('/usr/local/ncurses/lib/terminfo')
|| this._terminfoPrefix(process.env.HOME + '/.terminfo');
|| this._terminfoPrefix('/usr/local/ncurses/lib/terminfo');
data = fs.readFileSync(file);
}