unicode env vars.
This commit is contained in:
parent
10edaa088b
commit
04ffa283ac
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue