Skip to content

Commit 79ee2d3

Browse files
authored
Make Ghostty terminal use true color (#653)
1 parent 5dbc1e2 commit 79ee2d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/vendor/supports-color/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
135135
return 3;
136136
}
137137

138+
if (env.TERM === 'xterm-ghostty') {
139+
return 3;
140+
}
141+
138142
if ('TERM_PROGRAM' in env) {
139143
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
140144

0 commit comments

Comments
 (0)