Skip to content

Accessibility: don't use background colors in combination with other colors #1899

@chtenb

Description

@chtenb

What happened, and what did you expect to happen?

Image

Not all terminal color schemes will yield readable text when combining different ANSI colors as foreground and background, in this case magenta and white. Instead, when using any ANSI color as background, set it as foreground+reversed, such that it is combined with the default background. This will be more or less guaranteed to give a readable result for all colorschemes.

Output of "elvish -version"

0.22.0-dev.0.20250425174858-9db96db5f479

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ❓Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions