Skip to content

[FEATURE] Make bright colors optional in StdoutReporter #139

@Markus00000

Description

@Markus00000

Is your feature request related to a problem? Please describe.
Bright diff colors are hard-coded in StdoutReporter. Depending on the terminal color scheme or user preference, normal colors might be preferred.

Describe the solution you'd like.
If the default remains to use bright colors, either add an option to disable them or a way to configure colors (e.g. like in Mutt and similar applications).

Additional context.

As a workaround I change _incolor() after each release:

  def _incolor(self, color_id: int, s: str) -> str:
      if self._has_color:
-         return f'\033[9{color_id}m{s}\033[0m'
+         return f'\033[3{color_id}m{s}\033[0m'
      return s

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