improve forceUnicode.
This commit is contained in:
parent
c1670137ae
commit
2934ac6408
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue