mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 18:01:22 +00:00
Enable truecolor support for Windows Terminal
This commit is contained in:
parent
15428f10ed
commit
e2e2cf116c
2 changed files with 5 additions and 0 deletions
|
|
@ -135,6 +135,10 @@ function detectColorMode(): ColorMode {
|
|||
if (colorterm === "truecolor" || colorterm === "24bit") {
|
||||
return "truecolor";
|
||||
}
|
||||
// Windows Terminal supports truecolor
|
||||
if (process.env.WT_SESSION) {
|
||||
return "truecolor";
|
||||
}
|
||||
const term = process.env.TERM || "";
|
||||
if (term.includes("256color")) {
|
||||
return "256color";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue