Unverified Commit d7dd56d6 authored by Hong Minhee's avatar Hong Minhee
Browse files

Merge pull request #360 from w8385/cli/nodeinfo/fix-color-support-in-WT

parents 26480ace 034c75a6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -8,6 +8,14 @@ Version 1.8.5

To be released.

### @fedify/cli

 -  Fixed `fedify nodeinfo` color support in Windows Terminal.
    [[#358], [#360] by KeunHyeong Park]

[#358]: https://github.com/fedify-dev/fedify/issues/358
[#360]: https://github.com/fedify-dev/fedify/pull/360


Version 1.8.4
-------------
+8 −0
Original line number Diff line number Diff line
@@ -299,6 +299,14 @@ function checkTerminalColorSupport(): "truecolor" | "256color" | "none" {
    return "256color";
  }

  // Check for Windows Terminal support
  // FIXME: WT_SESSION is not a reliable way to check for Windows Terminal support
  const isWindows = Deno.build.os === "windows";
  const isWT = Deno.env.get("WT_SESSION");
  if (isWindows && isWT != null && isWT !== "") {
    return "truecolor";
  }

  return "none";
}