Skip to content

🚀 Change is_truecolor_terminal to also check for RGB capability #1931

Open
@Tachi107

Description

@Tachi107

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 with TERM=xterm-direct and foot with TERM=foot-direct.

Could you please consider checking for that capability, alongside COLORTERM? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions