unicode env vars.

This commit is contained in:
Christopher Jeffrey 2015-09-07 05:14:10 -07:00
parent 10edaa088b
commit 04ffa283ac
1 changed files with 5 additions and 1 deletions

View File

@ -2041,6 +2041,10 @@ Tput.prototype.detectFeatures = function(info) {
}; };
Tput.prototype.detectUnicode = function() { Tput.prototype.detectUnicode = function() {
if (process.env.NCURSES_FORCE_UNICODE != null) {
return !!+process.env.NCURSES_FORCE_UNICODE;
}
if (this.options.forceUnicode != null) { if (this.options.forceUnicode != null) {
return this.options.forceUnicode; return this.options.forceUnicode;
} }
@ -2168,7 +2172,7 @@ Tput.prototype.GetConsoleCP = function() {
} }
// Allow unicode on all windows consoles for now: // Allow unicode on all windows consoles for now:
if (+process.env.NCURSES_UNICODE !== 0) { if (+process.env.NCURSES_NO_WINDOWS_UNICODE !== 1) {
return 65001; return 65001;
} }