You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anteater desperately needs at least 256 color support, although true color is the end goal.
Curses supports 8 bit color, and you can change the rgb values of those, which should work to fake true color. But working around curses with ANSI escape codes might be easier.
The text was updated successfully, but these errors were encountered:
This function changes the color to any RGB value and forces curses to register it. But it doesn't work on row one (or the first time it's called?)
def add_str(stdscr, *args):
final_args = []
for arg in enumerate(args):
if isinstance(arg[1], Color):
show_color(stdscr, arg[1].r, arg[1].g, arg[1].b)
else:
final_args.append(arg)
stdscr.addstr(*[arg for _, arg in final_args])
stdscr.refresh()
Simple wrapper for screen.add_str() which works with custom RGB Colors (custom type Color) and normal colors.
It should probably reset the color once it does receive the color.
Anteater desperately needs at least 256 color support, although true color is the end goal.
Curses supports 8 bit color, and you can change the rgb values of those, which should work to fake true color. But working around curses with ANSI escape codes might be easier.
The text was updated successfully, but these errors were encountered: