require both terminfo and LANG to lack utf8 in order for ascii fallback. fixes #98.
This commit is contained in:
parent
1cf69f74d9
commit
1f2098707c
|
@ -1113,7 +1113,8 @@ Screen.prototype.draw = function(start, end) {
|
|||
// are it does not support UTF8. This is probably
|
||||
// the "safest" way to do this. Should fix things
|
||||
// like sun-color.
|
||||
if ((!this.tput.unicode || this.tput.numbers.U8 !== 1) && ch > '~') {
|
||||
// if (!this.tput.unicode && ch > '~') {
|
||||
if (!this.tput.unicode && this.tput.numbers.U8 !== 1 && ch > '~') {
|
||||
ch = this.tput.utoa[ch] || '?';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue