Clear and exit_fullscreen seem not to work
python, python-blessings
Solution
Just as with all the other capabilities exposed by Blessings, you have to `print` them for them to have any effect. What's happening under the covers is that your terminal emulator is "listening" for certain sequences, and then it responds by taking actions such as switching in or out of fullscreen mode. So, in your case, saying `print term.enter_fullscreen` should do the trick. Let me know if you have any more problems!
Problem
I've started to play around with blessings - so far I'm liking it a lot since it does make things a lot easier. However I tried to clear the screen without success... `enter_fullscreen` seems to work tho since that "clears" it - but `exit_fullscreen` doesn't bring me back 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` it seems. There is no error message or anything, it just doesn't seem to do anything. Does anyone know how it works? Edit: Neither ``` term.clear ``` nor ``` term.clear() ``` seem to work... edit2: I can pretty much do this and the result is the same as above. It does the coloring and placement but not clearing 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")) ```