Skip to content

Environment variable fallback for the default blending color #13

Description

@thehuglet

Problem

Some terminals do not expose their default background color. In those cases, default_blending_color currently falls back to Color::BLACK. While this fallback color is close enough to what most terminals use, it doesn't cover all cases.

We do have override_default_blending_color(), but unless the developer decides to implement a solution for this exact problem, the end-user is left with a worse experience.

Solution

My proposed solution is to introduce an environment variable that would act as an extra fallback before Color::BLACK. This feature would give some more control to power users, without relying on the developers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions