Skip to content

Hard-coded colors in terminal output #512

Description

@ybznek

If somebody use white terminal, he will not see some output texts, because they have same color.

https://github.com/OpenSCAP/openscap/blob/maint-1.2/utils/oscap-xccdf.c#L297

I wanted to fix it, but we use all - grey/white/bold formats.

If I replace white/gray by "default", all these texts will be visually same.

We could use [italic]not applicable[/italic], but e.g. my terminal cannot display italic.
If we use [bold]not applicable[/bold] it will have same style as rule title.

Any tips how to don't use hard-coded colors and don't break much current styles?

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions