Skip to content

[Actions] Support 256 colors #24777

@silverwind

Description

@silverwind

Feature Description

Results from a color test script:

It looks like Gitea Actions only supports 16 color, no 256, but apparently true color backgrounds. Also there seems to be a bug where some 256-color escape sequences are interpreted as enabling underline style.

The implementation should detect the relevant ANSI escape sequences and use inline styles for at least the 256 and 16m variants, e.g. style="color:rgb(0,204,153)". We should also use some "nicer" colors for the 16-color variants that have sufficient contrast over the background.

Screenshots

GitHub

image Screenshot 2023-05-17 at 22 52 39 image

Gitea

image Screenshot 2023-05-17 at 22 52 52 image

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposal/acceptedWe have reviewed the proposal and agree that it should be implemented like that/at all.topic/gitea-actionsrelated to the actions of Giteatype/enhancementAn improvement of existing functionalitytype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions