diff --git a/lib/tput.js b/lib/tput.js index 2d98d25..9d01c91 100644 --- a/lib/tput.js +++ b/lib/tput.js @@ -2157,9 +2157,8 @@ Tput.prototype.GetConsoleCP = function() { ccp = +ccp[0]; - // XXX Workaround: temporarily allow unicode on cp437. - // When CP is 65001, node throws on all output! - if (ccp === 437) { + // Allow unicode on all windows consoles for now: + if (+process.env.NCURSES_UNICODE !== 0) { ccp = 65001; }