Skip to content

Suggest patching 'colors' field for 1 << 24 #14

Description

@jquast

suggested by @vxgmichel from vxgmichel/gambatte-terminal#41 (comment)

'colors' field in a terminfo binary database file was historically 16-bit limited, but can "upgraded" to 32-but, https://github.com/jquast/ttyscan/blob/master/ttyscan.py#L510

I guess the 'xterm-direct' and many other '-direct' variants, were designed to ensure you would use it only for possible truecolor support indicated in 'colors' field for "modern" applications, 32-bit and newer.

Some thoughts/options,

  • jinxed could patch 'colors' to be 24-bit, if they have any -direct ancestors that describe 24 bit color in setaf/ab, or, can be patched in terminals.toml when known to support it .. kitty, contour, etc.
    • I think xterm-direct and xterm-256color-direct may be exceptions to the rule, although XTerm supports truecolor, the many terminal emulators sharing this TERM may not. Whereas "rio", "contour", "kitty", etc. most certainly do.
  • jinxed could also generate and re-export "-direct" variants, the code generation should correctly make small "inheritance" files if the source file is described as such,
    • And then everything is on blessed's responsibility to use jinxed to "merge" or update the setaf/setab/colors/etc. fields using the overlay method recently added

let us know what you think @avylove

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions