Make Ghostty terminal use true color (#653)

This commit is contained in:
Brice 2025-08-03 18:14:54 -05:00 committed by GitHub
parent 5dbc1e2633
commit 79ee2d386c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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