You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're currently thinking about using supports-color to verify if the terminal supports truecolor (has_16m) in onefetch. However, we've encountered an issue with Windows.
You can detect Windows Terminal, the default Terminal Emulator on Win11 (not Win10) by checking wether the WT_SESSION Environment vaiable is set. However this only works if your program is launched directly by Windows Terminal or a different program that was launched by Windows Terminal. Only that way Windows Terminal can Inject the WT_SESSION Environment Variable. See this comment on Windows Terminal:
Hello 👋 ,
We're currently thinking about using
supports-color
to verify if the terminal supportstruecolor
(has_16m) in onefetch. However, we've encountered an issue with Windows.It appears that @sindresorhus's NPM package handles this situation correctly, cf. chalk/supports-color/pull/71.
Thanks in advance👍
The text was updated successfully, but these errors were encountered: