Started paring down urwid.
This commit is contained in:
parent
d8f1f211d1
commit
23a0fe2ab4
5 changed files with 13 additions and 1755 deletions
16
terminal.py
16
terminal.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue