fix acs handling with screen when LANG != utf8.

This commit is contained in:
Christopher Jeffrey 2014-03-18 01:24:49 -05:00
parent 075ca1049a
commit dc6f6ade41
1 changed files with 2 additions and 3 deletions

View File

@ -1088,9 +1088,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.numbers.U8 !== 1 && ch > '~') {
// if ((!this.unicode || this.tput.numbers.U8 !== 1) && this.tput.utoa[ch]) {
if (this.tput.numbers.U8 !== 1 && this.tput.utoa[ch]) {
// if ((!this.unicode || this.tput.numbers.U8 !== 1) && ch > '~') {
if ((!this.unicode || this.tput.numbers.U8 !== 1) && this.tput.utoa[ch]) {
ch = this.tput.utoa[ch] || '?';
}
}