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
Delta currently only checks the COLORTERM environment variable to detect if the terminal supports "true colors".
Starting with ncurses 6.1, a new RGB capability was added which provides a standard and reliable way of detecting direct RGB color support of a terminal emulator (I'm talking about "direct colour in RGB space" as described in ITU-T Recommendation T.416, also known as ISO/IEC 8613-6, which you can freely download from https://www.itu.int/rec/T-REC-T.416-199303-I/en).
This RGB capability is currently exposed by "direct color" terminals like xterm with TERM=xterm-direct and foot with TERM=foot-direct.
Could you please consider checking for that capability, alongside COLORTERM? Thanks!
The text was updated successfully, but these errors were encountered:
Tachi107
added a commit
to Tachi107/delta
that referenced
this issue
Dec 29, 2024
This allows delta to work properly on Direct Color terminals like
xterm-direct and foot-direct.
This adds a dependency on the "terminfo" crate in order to read the
`RGB` capability. The crate is used by wezterm, among others.
Fixesdandavison#1931
Tachi107
added a commit
to Tachi107/delta
that referenced
this issue
Dec 29, 2024
This allows delta to work properly on Direct Color terminals like
xterm-direct and foot-direct.
This adds a dependency on the "terminfo" crate in order to read the
`RGB` capability. The crate is used by wezterm, among others.
Fixesdandavison#1931
This allows delta to work properly on Direct Color terminals like
xterm-direct and foot-direct.
This adds a dependency on the "terminfo" crate in order to read the
`RGB` capability. The crate is used by wezterm, among others.
Fixesdandavison#1931
Hi!
Delta currently only checks the
COLORTERM
environment variable to detect if the terminal supports "true colors".Starting with ncurses 6.1, a new
RGB
capability was added which provides a standard and reliable way of detecting direct RGB color support of a terminal emulator (I'm talking about "direct colour in RGB space" as described in ITU-T Recommendation T.416, also known as ISO/IEC 8613-6, which you can freely download from https://www.itu.int/rec/T-REC-T.416-199303-I/en).This
RGB
capability is currently exposed by "direct color" terminals like xterm withTERM=xterm-direct
and foot withTERM=foot-direct
.Could you please consider checking for that capability, alongside
COLORTERM
? Thanks!The text was updated successfully, but these errors were encountered: