finally figured out how to recognize some special chars in curses (ui.py)