potentially fix acs handling again: utf8 fallback on brokenACS.
This commit is contained in:
parent
dc6f6ade41
commit
1bdba0dad0
|
@ -1064,9 +1064,7 @@ Screen.prototype.draw = function(start, end) {
|
|||
// supports UTF8, but I imagine it's unlikely.
|
||||
// Maybe remove !this.tput.unicode check, however,
|
||||
// this seems to be the way ncurses does it.
|
||||
if (this.tput.strings.enter_alt_charset_mode) {
|
||||
//if (!this.tput.brokenACS || !this.tput.unicode) {
|
||||
if (!this.tput.brokenACS) {
|
||||
if (this.tput.strings.enter_alt_charset_mode && !this.tput.brokenACS) {
|
||||
if (this.tput.acscr[ch]) {
|
||||
if (acs) {
|
||||
ch = this.tput.acscr[ch];
|
||||
|
@ -1079,7 +1077,6 @@ Screen.prototype.draw = function(start, end) {
|
|||
ch = this.tput.rmacs() + ch;
|
||||
acs = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// U8 is not consistently correct. Some terminfo's
|
||||
// terminals that do not declare it may actually
|
||||
|
|
Loading…
Reference in New Issue