Skip to content

Support for -1 as a color #6

@geolessel

Description

@geolessel

It looks like use -1 as a color number is supported to display no color. I'd like to be able to modify the code to allow that as a color pair value but it looks like it is only expecting unsigned integers. I don't have enough experience in Crystal to know how to fix this issue or I would have included it in #5.

An example of where this matters is when setting NCurses.use_default_colors. Since I'm forced to use a defined background color, it overwrites my default terminal background color. Is there a good way to fix this?

Without NCurses.use_default_colors

screenshot 2018-08-29 14 45 24

With NCurses.use_default_colors

screenshot 2018-08-29 14 45 50

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