user3565923
user3565923

Reputation: 340

How to color auto-echoed charactes in curses?

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.

Upvotes: 0

Views: 24

Answers (1)

Thomas Dickey
Thomas Dickey

Reputation: 54505

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

Upvotes: 1

Related Questions