improve forceUnicode.

This commit is contained in:
Christopher Jeffrey 2015-08-09 03:20:27 -07:00
parent c1670137ae
commit 2934ac6408
2 changed files with 5 additions and 5 deletions

View File

@ -2039,8 +2039,8 @@ Tput.prototype.detectFeatures = function(info) {
};
Tput.prototype.detectUnicode = function() {
if (this.options.forceUnicode) {
return true;
if (this.options.forceUnicode != null) {
return this.options.forceUnicode;
}
var LANG = process.env.LANG

View File

@ -63,9 +63,9 @@ function Screen(options) {
this.program.useBuffer = true;
this.program.zero = true;
this.program.options.resizeTimeout = options.resizeTimeout;
if (options.forceUnicode) {
this.program.tput.features.unicode = true;
this.program.tput.unicode = true;
if (options.forceUnicode != null) {
this.program.tput.features.unicode = options.forceUnicode;
this.program.tput.unicode = options.forceUnicode;
}
}