Skip to content

ANSI escape codes for RGB values break when one of the values is 0 or 1 #63

@Lolabird

Description

@Lolabird

Hi! I'm new to using ANSI codes, so I may be missing something, but I noticed that when a 0 or 1 is added as an <r>,<g>, or <b> value, the color doesn't print as expected. The 0 resets the color and the 1 makes the color bold. There doesn't appear to be any issues with other numbers. From the small amount of testing I did, colors print as expected 2-255 in the <r>,<g>, or <b> placements. Also in case it's helpful, the languages I tested this in were Bash and Python.

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