mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.24k stars 243 forks source link

TextColor.ANSI should support bright foregrounds and backgrounds #475

Closed keithkml closed 4 years ago

keithkml commented 4 years ago

TextColor.ANSI only supports the normal versions of the basic 4-bit colors. Why not include the bright versions of the colors? (The code mentions that bold can make the color brighter in some terminals, but that only works for foreground.)

avl42 commented 4 years ago

If you had a character with a bright background... do you know how to send it as an ANSI-color escape sequence? I think, most terminals only have 3bit of color info for foreground, and 3bit for background, plus one more bit for bold. If you want more colors for a terminal that supports it, like swingterminal, then just used Indexed colors or full RGB.