Commit 91e1ba304a
Unsigned
Layout: unified · split
curd.py +7 −2
| @@ -467,8 +467,13 @@ def select_anime(anime_list): | ||
| 467 | 467 | stdscr.addstr(display_idx, 0, anime) |
| 468 | 468 | |
| 469 | 469 | # Get user input |
| 470 | key = stdscr.getch() | |
| 471 | ||
| 470 | try: | |
| 471 | key = stdscr.getch() | |
| 472 | except KeyboardInterrupt: | |
| 473 | curses.endwin() | |
| 474 | print("Have a great day!") | |
| 475 | os._exit(0) | |
| 476 | ||
| 472 | 477 | # Handle key inputs |
| 473 | 478 | if key in [curses.KEY_BACKSPACE, 127, 8]: |
| 474 | 479 | current_input = current_input[:-1] |