supports-color 10.0.0 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -147,6 +147,10 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
147
147
  return 3;
148
148
  }
149
149
 
150
+ if (env.TERM === 'xterm-ghostty') {
151
+ return 3;
152
+ }
153
+
150
154
  if ('TERM_PROGRAM' in env) {
151
155
  const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
152
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supports-color",
3
- "version": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "description": "Detect whether a terminal supports color",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/supports-color",