Enable truecolor support for Windows Terminal
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user