diff --git a/eris/fill3.py b/eris/fill3.py index d2969e5..9d8488c 100755 --- a/eris/fill3.py +++ b/eris/fill3.py @@ -490,7 +490,10 @@ def context(loop, appearance_changed_event, screen_widget, exit_loop=None): with terminal.alternate_buffer(), terminal.interactive(), \ terminal.mouse_tracking(): loop.add_reader(sys.stdin, on_terminal_input, screen_widget) - yield + try: + yield + finally: + loop.remove_reader(sys.stdin) ##########################