Handle escape sequences with ncurses? Does printf handle escape sequences?
问题 My program read some text data from network, something like: Hello \033[1;34mworld\033[0m and bla bla bla!!!\n" . When program output this string using prinf, the word "world" is blue. But when I'm using ncurses interface with wprintw or addch, I see the original string with escape sequences. Does it mean that printf handle escape sequences or not? What is the best way handle escape sequences with ncurses? 回答1: No, your terminal handles the escape sequences. The phenomenon you're seeing comes