Skip to content

No support for 16 colours #1144

Open

Description

@henrebotha

It appears src either uses no colours (NO_COLOR=1), or 256 colours. This means that if the colours chosen for 256-colour mode are hard to read, I have no choice but to turn colour off entirely and lose some valuable readability-enhancing information in the output.

I would really appreciate an option to stick to 16 colours (4-bit colour), so that src only uses colours defined by my terminal theme.

Activity

  1. linear commented on Feb 13, 2025

    @linear
  2. jojosenthusiast commented on Jun 29, 2026

    @jojosenthusiast

    I'm interested in picking this up. Before opening a PR, would you prefer 16-colour support to be exposed as an explicit flag (for example alongside the existing colour mode handling), an environment/config option, or something else?

    The minimal change I would aim for is to keep current defaults unchanged and add a user-selected 4-bit/16-colour mode, with tests around the colour-mode selection path.

  3. henrebotha commented on Jun 29, 2026

    @henrebotha
    Author

    I would prefer this as a config option, as I'm unlikely to want to change it on a per-invocation basis.

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