require both terminfo and LANG to lack utf8 in order for ascii fallback. fixes #98.

This commit is contained in:
Christopher Jeffrey 2015-02-08 14:29:38 -08:00
parent 1cf69f74d9
commit 1f2098707c
1 changed files with 2 additions and 1 deletions

View File

@ -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] || '?';
}
}