Skip to content

Ghostty supports truecolor#653

Merged
sindresorhus merged 1 commit intochalk:mainfrom
rhodes-b:ghostty-colors
Aug 3, 2025
Merged

Ghostty supports truecolor#653
sindresorhus merged 1 commit intochalk:mainfrom
rhodes-b:ghostty-colors

Conversation

@rhodes-b
Copy link
Contributor

@rhodes-b rhodes-b commented Aug 3, 2025

ghostty is a newer popular terminal emulator https://github.com/ghostty-org/ghostty/

it uses xterm-ghostty for TERM

it supports truecolor, and I see you already have a hack for kitty so might as well add one for ghostty

@sindresorhus
Copy link
Member

Have you confirmed it doesn't already return 3 on Ghostty? (using any of the other checks)

@rhodes-b
Copy link
Contributor Author

rhodes-b commented Aug 3, 2025

This covers ssh because COLORTERM is not propigated over ssh by default so ghostty matches the xterm case

refer to for the same thing with kitty
chalk/supports-color#137 (comment)

@rhodes-b
Copy link
Contributor Author

rhodes-b commented Aug 3, 2025

I didnt know there was another repo as well, should I make a PR for the same changes?
https://github.com/chalk/supports-color

@sindresorhus
Copy link
Member

Yes

@sindresorhus sindresorhus merged commit 79ee2d3 into chalk:main Aug 3, 2025
1 of 3 checks passed
Blankll added a commit to geek-fun/serverlessinsight that referenced this pull request Oct 15, 2025
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)


<h3>Snyk has created this PR to upgrade chalk from 5.5.0 to 5.6.2.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **2 versions** ahead of your current
version.

- The recommended version was released **a month ago**.




<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>chalk</b></summary>
    <ul>
      <li>
<b>5.6.2</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.6.2">2025-09-08</a></br><ul>
<li>Fix vulnerability in 5.6.1, see: <a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="3394344371"
data-permission-text="Title is private"
data-url="chalk/chalk#656"
data-hovercard-type="issue"
data-hovercard-url="/chalk/chalk/issues/656/hovercard"
href="https://redirect.github.com/chalk/chalk/issues/656">#656</a></li>
</ul>
      </li>
      <li>
<b>5.6.0</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.6.0">2025-08-17</a></br><ul>
<li>Make WezTerm terminal use true color <a class="commit-link"
data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/a8f5bf7a6733b1e2a356d5cccea6a45d80cf16c7/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/a8f5bf7a6733b1e2a356d5cccea6a45d80cf16c7"><tt>a8f5bf7</tt></a></li>
</ul>
<hr>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.5.0...v5.6.0"><tt>v5.5.0...v5.6.0</tt></a></p>
      </li>
      <li>
<b>5.5.0</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.5.0">2025-08-03</a></br><ul>
<li>Make Ghostty terminal use true color (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="3286564671" data-permission-text="Title is private"
data-url="chalk/chalk#653"
data-hovercard-type="pull_request"
data-hovercard-url="/chalk/chalk/pull/653/hovercard"
href="https://redirect.github.com/chalk/chalk/pull/653">#653</a>) <a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/79ee2d386c58ae3863c28a01f5f86b04c78adfc1/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/79ee2d386c58ae3863c28a01f5f86b04c78adfc1"><tt>79ee2d3</tt></a></li>
</ul>
<hr>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.4.1...v5.5.0"><tt>v5.4.1...v5.5.0</tt></a></p>
      </li>
    </ul>
from <a href="https://redirect.github.com/chalk/chalk/releases">chalk
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI5OWJjZWVmOC04YzkzLTQ0NDItYTQ4Zi00ZWJlMzMzMWI2ZGEiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6Ijk5YmNlZWY4LThjOTMtNDQ0Mi1hNDhmLTRlYmUzMzMxYjZkYSJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32/settings/integration?pkg&#x3D;chalk&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":null,"FF_showPullRequestBreakingChangesWebSearch":null,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"chalk","from":"5.5.0","to":"5.6.2"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"99bceef8-8c93-4442-a48f-4ebe3331b6da","prPublicId":"99bceef8-8c93-4442-a48f-4ebe3331b6da","packageManager":"npm","priorityScoreList":[],"projectPublicId":"9c72c875-e7a2-4e68-85a9-7b26a5bc5b32","projectUrl":"https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":2,"publishedDate":"2025-09-08T14:47:54.486Z"},"vulns":[]}'

Co-authored-by: snyk-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants