os.system('cls') doesn't work. It just simply puts a square box at end of output
Asked
Active
Viewed 68 times
0
-
https://stackoverflow.com/questions/27241268/clear-pycharm-run-window – youngminz Mar 22 '20 at 12:17
-
@Klaus D I have seen that question before. Although there is workaround mentioned in answer to that questiojn using pyautogui. I wanted to know if method exists or not. Maybe there exists an library for pycharm console which I don't know of – Utkrisht Mar 23 '20 at 13:51
-
Library requests are off-topic on Stack Overflow. – Klaus D. Mar 23 '20 at 13:54
-
@Klaus D Ok I didn't knew that – Utkrisht Mar 23 '20 at 15:01
1 Answers
0
If you check the documentation of os.system
function, it says, execute the command in a subshell
.
def system(*args, **kwargs): # real signature unknown
""" Execute the command in a subshell. """
pass
That means, your main console is receiving the output of cls
command run in subconsole ada

gsb22
- 2,112
- 2
- 10
- 25