I am trying to get user input in curses (python), and for some reason it cannot detect when I press the ENTER key.
while True:
key = stdscr.getkey()
if key == curses.KEY_ENTER:
TASK += 1
break
elif key.lower() == 'q':
quit(stdscr)
break
the if
part is not working and the elif
part is working fine.