Compare commits

...

4 commits
v5.5.0 ... main

Author SHA1 Message Date
Mohamed Hamed
aa06bb5ac3
Fix typos (#664) 2026-01-27 13:30:36 +07:00
Sindre Sorhus
51557784b8 5.6.2 2025-09-08 21:47:34 +07:00
Sindre Sorhus
5c91505e18 5.6.0 2025-08-17 14:26:22 +07:00
Sindre Sorhus
a8f5bf7a67 Make WezTerm terminal use true color 2025-08-17 14:25:29 +07:00
3 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "chalk", "name": "chalk",
"version": "5.5.0", "version": "5.6.2",
"description": "Terminal string styling done right", "description": "Terminal string styling done right",
"license": "MIT", "license": "MIT",
"repository": "chalk/chalk", "repository": "chalk/chalk",

View file

@ -139,6 +139,10 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
return 3; return 3;
} }
if (env.TERM === 'wezterm') {
return 3;
}
if ('TERM_PROGRAM' in env) { if ('TERM_PROGRAM' in env) {
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);