I started playing with blessings - I still like it a lot since it makes things a lot easier. However, I tried to clear the screen without success ... enter_fullscreenit seems to work like that because it "clears" it, but exit_fullscreendoes not return me to the original view.
term = blessings.Terminal()
term.enter_fullscreen
with term.location():
print(term.move(0,(term.width/2)-7) + term.bold_green("Test Test Test"))
print(term.move(5,(term.width/2)-7) + term.bold_red("Test Test Test"))
time.sleep(5)
term.clear
term.exit_fullscreen
This works, except for clear and exit_fullscreen. There is no error message or anything else, it just does nothing.
Does anyone know how this works?
Edit: None
term.clear
neither
term.clear()
seems to work ...
edit2:
I can pretty much do this and the result will be the same as above. He does the coloring and placement, but does not clean or anything else.
term = blessings.Terminal()
with term.location():
print(term.move(0,(term.width/2)-7) + term.bold_green("Test Test Test"))
print(term.move(5,(term.width/2)-7) + term.bold_red("Test Test Test"))
source
share