Skip to content

Commit

Permalink
Improve Windows emoji support detection (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon93s authored and devongovett committed Jan 21, 2018
1 parent a78280a commit dba3d49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/emoji.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const supportsEmoji = process.platform !== 'win32' || process.env.VSCODE_PID;
const supportsEmoji =
process.platform !== 'win32' || process.env.TERM === 'xterm-256color';

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

0 comments on commit dba3d49

Please sign in to comment.