Make WezTerm terminal use true color
This commit is contained in:
parent
67db246ae0
commit
a8f5bf7a67
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
|
|
@ -139,6 +139,10 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (env.TERM === 'wezterm') {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
if ('TERM_PROGRAM' in env) {
|
if ('TERM_PROGRAM' in env) {
|
||||||
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue