Skip to content

Commit dba3d49

Browse files
brandon93sdevongovett
authored andcommitted
Improve Windows emoji support detection (#607)
1 parent a78280a commit dba3d49

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/emoji.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const supportsEmoji = process.platform !== 'win32' || process.env.VSCODE_PID;
1+
const supportsEmoji =
2+
process.platform !== 'win32' || process.env.TERM === 'xterm-256color';
23

34
// Fallback symbols for Windows from https://en.wikipedia.org/wiki/Code_page_437
45
exports.progress = supportsEmoji ? '⏳' : '∞';

0 commit comments

Comments
 (0)