From 0c24cc6da2a8fc47871090029b7e551302e7d402 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 29 Oct 2023 20:58:09 +0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20assume=20CI=20on=20Windows=20su?= =?UTF-8?q?pports=20Unicode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes sindresorhus/figures#94 --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index d3938c5..a338c6b 100644 --- a/index.js +++ b/index.js @@ -5,8 +5,7 @@ export default function isUnicodeSupported() { return process.env.TERM !== 'linux'; // Linux console (kernel) } - return Boolean(process.env.CI) - || Boolean(process.env.WT_SESSION) // Windows Terminal + return Boolean(process.env.WT_SESSION) // Windows Terminal || Boolean(process.env.TERMINUS_SUBLIME) // Terminus (<0.2.27) || process.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder || process.env.TERM_PROGRAM === 'Terminus-Sublime'