more terminfo paths.
This commit is contained in:
parent
445e278af0
commit
7074d0da91
|
@ -1552,6 +1552,7 @@ Program.prototype.text = function(text, attr) {
|
||||||
return this._attr(attr, true) + text + this._attr(attr, false);
|
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) {
|
Program.prototype._attr = function(param, val) {
|
||||||
var self = this
|
var self = this
|
||||||
, param = param || 'normal'
|
, param = param || 'normal'
|
||||||
|
|
|
@ -104,14 +104,16 @@ Tput.prototype.readTerminfo = function(data) {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
var file = this.terminfoFile
|
var file = this.terminfoFile
|
||||||
|| this._terminfoPrefix(this.terminfoPrefix)
|
|| 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/terminfo')
|
||||||
|| this._terminfoPrefix('/usr/share/lib/terminfo')
|
|| this._terminfoPrefix('/usr/share/lib/terminfo')
|
||||||
|| this._terminfoPrefix('/usr/lib/terminfo')
|
|| this._terminfoPrefix('/usr/lib/terminfo')
|
||||||
|| this._terminfoPrefix('/usr/local/share/terminfo')
|
|| this._terminfoPrefix('/usr/local/share/terminfo')
|
||||||
|| this._terminfoPrefix('/usr/local/share/lib/terminfo')
|
|| this._terminfoPrefix('/usr/local/share/lib/terminfo')
|
||||||
|| this._terminfoPrefix('/usr/local/lib/terminfo')
|
|| this._terminfoPrefix('/usr/local/lib/terminfo')
|
||||||
|| this._terminfoPrefix('/usr/local/ncurses/lib/terminfo')
|
|| this._terminfoPrefix('/usr/local/ncurses/lib/terminfo');
|
||||||
|| this._terminfoPrefix(process.env.HOME + '/.terminfo');
|
|
||||||
data = fs.readFileSync(file);
|
data = fs.readFileSync(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue