We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705a473 commit af52bbdCopy full SHA for af52bbd
index.js
@@ -14,6 +14,12 @@ const PREFIX_TEXT = Symbol('prefixText');
14
15
const ASCII_ETX_CODE = 0x03; // Ctrl+C emits this code
16
17
+const terminalSupportsUnicode = () => (
18
+ process.platform !== 'win32' ||
19
+ process.env.TERM_PROGRAM === 'vscode' ||
20
+ Boolean(process.env.WT_SESSION)
21
+);
22
+
23
class StdinDiscarder {
24
constructor() {
25
this.requests = 0;
@@ -163,7 +169,7 @@ class Ora {
163
169
}
164
170
165
171
this._spinner = spinner;
166
- } else if (process.platform === 'win32') {
172
+ } else if (!terminalSupportsUnicode()) {
167
173
this._spinner = cliSpinners.line;
168
174
} else if (spinner === undefined) {
175
// Set default spinner
0 commit comments