print unicode issue using curses in python

45 Views Asked by At

I'm writing a game using python with curses library. Somebody made a new version of curses for Windows, So I'm using this library. But I got a problem printing unicodes in terminal. And I don't know how to solve this problem. Please help me.

import curses
from curses import wrapper


def main(stdscr):
    stdscr.clear()
    curses.curs_set(0)
    stdscr.addstr(10, 10, '⭘', 8)

    stdscr.getch()
    stdscr.getch()

wrapper(main)

printing half of the unicode this terminal is printing half of the unicode. I want to show entire uncode character, but I can't Is this can be fixed? What should I do?

I tried reading documentation hoping there is some methods for printing unicodes, but there was nothing. I checked encoding type, but it supported unicode.

0

There are 0 best solutions below