ghostty supports truecolor

This commit is contained in:
rhodes-b 2025-08-02 20:12:35 -05:00
parent 5dbc1e2633
commit dff4e06a27

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);