Started paring down urwid.

This commit is contained in:
Andrew Hamilton 2016-12-03 13:24:41 +01:00
parent d8f1f211d1
commit 23a0fe2ab4
5 changed files with 13 additions and 1755 deletions

View file

@ -56,17 +56,11 @@ def move(x, y): # cup
@contextlib.contextmanager
def fullscreen():
if enter_fullscreen is None:
try:
yield
finally:
sys.stdout.write(clear)
else:
sys.stdout.write(enter_fullscreen)
try:
yield
finally:
sys.stdout.write(exit_fullscreen)
sys.stdout.write(enter_fullscreen)
try:
yield
finally:
sys.stdout.write(exit_fullscreen)
@contextlib.contextmanager