Welcome To HelpOut! The Home for All Your Questions
43 views
asked Feb 21 in Engineering & Technology by Michael

1 Answer

1 like 1 dislike
answered Feb 21 by anonymous
An easier way to clear a screen while in python is to use Ctrl + L though it works for the shell as well as other programs. Command+K works fine in OSX to clear screen. Shift+Command+K to clear only the scrollback buffer. Subprocess allows you to call "cls" for Shell.
commented Feb 24 by (130 points)
0 0

Well thanks, but what I was looking for is a piece of code that will tell the computer to clear the screen while the program is being run; not a keyboard shortcut.

commented Feb 26 by (2,147m points)
0 0
Okay..
...