From a8f5bf7a6733b1e2a356d5cccea6a45d80cf16c7 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 17 Aug 2025 14:25:09 +0700 Subject: [PATCH] Make WezTerm terminal use true color --- source/vendor/supports-color/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/vendor/supports-color/index.js b/source/vendor/supports-color/index.js index 0e130a1..265d7f8 100644 --- a/source/vendor/supports-color/index.js +++ b/source/vendor/supports-color/index.js @@ -139,6 +139,10 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) { return 3; } + if (env.TERM === 'wezterm') { + return 3; + } + if ('TERM_PROGRAM' in env) { const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);