From fc92dca39c6b879f96a3d01ce66142a81e62a01d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 10 Aug 2013 09:34:37 -0500 Subject: [PATCH] remove old acs code. --- lib/widget.js | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/lib/widget.js b/lib/widget.js index 1771383..da0ac1a 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -1060,52 +1060,6 @@ Screen.prototype.draw = function(start, end) { // Maybe remove !this.tput.unicode check, however, // this seems to be the way ncurses does it. if (this.tput) { - if (this.tput.strings.enter_alt_charset_mode) { - //if (!this.tput.brokenACS || !this.tput.unicode) { - if (!this.tput.brokenACS) { - if (this.tput.acscr[ch]) { - if (acs) { - ch = this.tput.acscr[ch]; - } else { - ch = this.tput.smacs() - + this.tput.acscr[ch]; - acs = true; - } - } else if (acs) { - ch = this.tput.rmacs() + ch; - acs = false; - } - } - } else { - // U8 is not consistently correct. Some terminfo's - // terminals that do not declare it may actually - // support utf8 (e.g. urxvt), but if the terminal - // does not declare support for ACS (and U8), chances - // 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]) { - ch = this.tput.utoa[ch] || '?'; - } - } - } - - // Attempt to use ACS for supported characters. - // This is not ideal, but it's how ncurses works. - // There are a lot of terminals that support ACS - // *and UTF8, but do not declare U8. So ACS ends - // up being used (slower than utf8). Terminals - // that do not support ACS and do not explicitly - // support UTF8 get their unicode characters - // replaced with really ugly ascii characters. - // It is possible there is a terminal out there - // somewhere that does not support ACS, but - // 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 (0 && this.tput) { if (this.tput.strings.enter_alt_charset_mode && !this.tput.brokenACS) { if (this.tput.acscr[ch]) { if (acs) {