diff --git a/lib/tput.js b/lib/tput.js index 2a57f58..4e4c1f0 100644 --- a/lib/tput.js +++ b/lib/tput.js @@ -2041,6 +2041,10 @@ Tput.prototype.detectFeatures = function(info) { }; Tput.prototype.detectUnicode = function() { + if (process.env.NCURSES_FORCE_UNICODE != null) { + return !!+process.env.NCURSES_FORCE_UNICODE; + } + if (this.options.forceUnicode != null) { return this.options.forceUnicode; } @@ -2168,7 +2172,7 @@ Tput.prototype.GetConsoleCP = function() { } // Allow unicode on all windows consoles for now: - if (+process.env.NCURSES_UNICODE !== 0) { + if (+process.env.NCURSES_NO_WINDOWS_UNICODE !== 1) { return 65001; }