From bba4dce9018e4fa4ee38b78a5270e72187740d8b Mon Sep 17 00:00:00 2001 From: David Refoua Date: Mon, 18 Mar 2019 15:09:29 +0330 Subject: [PATCH] feat(cli) Allow Terminus terminal to display emojis (#7093) ### 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](https://github.com/Eugeny/terminus/commit/e246e22bfd51b1ee5e9e97a391ba6f51230070bb) `TERM_PROGRAM` to `Terminus` (like how Hyper sets it to `Hyper`), it is proper for Yarn to display Emojis also on Terminus. --- CHANGELOG.md | 4 ++++ src/cli/index.js | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0355a7b51..32cbae11b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/cli/index.js b/src/cli/index.js index 60cd2c2597..bcc70f15c7 100644 --- a/src/cli/index.js +++ b/src/cli/index.js @@ -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 ', 'working directory to use', process.cwd());