Skip to content

Commit

Permalink
feat(cli) Allow Terminus terminal to display emojis (#7093)
Browse files Browse the repository at this point in the history
### Summary
add Terminus to the list of supported terminal emulators for emoji

### Motivation
Since [Terminus](https://eugeny.github.io/terminus/) is also a xterm.js terminal emulator (same as [Hyper](https://hyper.is/)), and recently [it sets](Eugeny/tabby@e246e22) `TERM_PROGRAM` to `Terminus` (like how Hyper sets it to `Hyper`), it is proper for Yarn to display Emojis also on Terminus.
  • Loading branch information
DRSDavidSoft authored and rally25rs committed Mar 18, 2019
1 parent 298e0ea commit bba4dce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -85,6 +85,10 @@ The 1.15.1 doesn't exist due to a release hiccup.
- Packages won't be auto-unplugged anymore if `ignore-scripts` is set in the yarnrc file

[#6983](https://github.com/yarnpkg/yarn/pull/6983) - [**Micha Reiser**](https://github.com/MichaReiser)

- Enables displaying Emojis on [Terminus](https://github.com/Eugeny/terminus) by default

[#7093](https://github.com/yarnpkg/yarn/pull/7093) - [**David Refoua**](https://github.com/DRSDavidSoft)

## 1.14.0

Expand Down
5 changes: 4 additions & 1 deletion src/cli/index.js
Expand Up @@ -105,7 +105,10 @@ export async function main({
'--emoji [bool]',
'enable emoji in output',
boolify,
process.platform === 'darwin' || process.env.TERM_PROGRAM === 'Hyper' || process.env.TERM_PROGRAM === 'HyperTerm',
process.platform === 'darwin' ||
process.env.TERM_PROGRAM === 'Hyper' ||
process.env.TERM_PROGRAM === 'HyperTerm' ||
process.env.TERM_PROGRAM === 'Terminus',
);
commander.option('-s, --silent', 'skip Yarn console logs, other types of logs (script output) will be printed');
commander.option('--cwd <cwd>', 'working directory to use', process.cwd());
Expand Down

0 comments on commit bba4dce

Please sign in to comment.