Coding style.
- Tidy up.
This commit is contained in:
parent
09e7c04e26
commit
03db3002b4
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
##########################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue