Clear Command Line Output From Python [eclipse]
I'm using Eclipse for writing Python, and I want to be able to easily clear the screen. I've seen this question, and tried (among other things suggested there) the following soluti
Solution 1:
The problem with running it in eclipse is that cls
uses ANSI escape sequences to clear the screen. What I mean by this is that to clear the screen, cls
writes a string such as "\033[[80;j"
to the output buffer. The native console (the one outside of eclipse) interprets this as a command to clear the screen, but the eclipse console doesn't understand it, so just prints a small square as if printing an unknown character.
Solution 2:
Clearing in outputs is actually not possible. The best hack is to print full of line breaks. IDEs like Eclipse never simulate terminals properly.
Post a Comment for "Clear Command Line Output From Python [eclipse]"