0

curses.echo() prints every hit key. I know how to change color when using addstr, but I don't know how to print some auto-echoed letters in red.

user3565923
  • 153
  • 2
  • 12

1 Answers1

1

That's done by setting the window attributes with a color-pair for red, e.g., using window.attron(attr)

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105