forked from orbit-oss/chalk
Make Ghostty terminal use true color (#653)
This commit is contained in:
parent
5dbc1e2633
commit
79ee2d386c
1 changed files with 4 additions and 0 deletions
4
source/vendor/supports-color/index.js
vendored
4
source/vendor/supports-color/index.js
vendored
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue