Write an UTF8 character to the last position of the screen with Python curses
问题 How to write a UTF8 character to the last position (bottom right) of the screen with Python's curses module? The task might look straight forward at first, but it isn't. First of all, Python 2.x is incapable of outputting UTF-8 using curses, so we'll assume Python 3.x here. There are two obvious candidates for doing it: screen.insch(lines - 1, columns - 1, u"\u00a9") This gives an OverflowError: byte doesn't fit in chtype . Bummer. What about: screen.addch(lines - 1, columns - 1, u"\u00a9")