Closed cclauss closed 7 years ago
chr() converts an integer into single character str which you can do upper() on.
python -c "print(chr(65) + chr(97))" # --> 'Aa'
My bad. getch defaults to -1 in curses no delay mode which we can't call chr on. Could wrap in another if to check before calling chr on it, current branch doesn't run for me
It also breaks consistency on the first loop checking keycodes to later check for chr for no real gain. I'd rather not for readability.
stdscr.getch() returns an integer, can't perform upper