Skip to content

Commit 67ce35e

Browse files
authored
Detect true-color support for Kitty terminal (#137)
1 parent 848b80e commit 67ce35e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

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

133+
if (env.TERM === 'xterm-kitty') {
134+
return 3;
135+
}
136+
133137
if ('TERM_PROGRAM' in env) {
134138
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
135139

0 commit comments

Comments
 (0)