I got really sick of always doing this when I want to clear my shell:
Or with the subprocess module etc...
So I made the simplest module ever on Pypi: pip3 install clear-screen
The import statement isn't much better than the os module import... but I like being able to quickly type clear() when I want to. Maybe there is already a module to do this? If not then there is now! clear-screen
1 2 |
from os import system system( 'clear' ) |
So I made the simplest module ever on Pypi: pip3 install clear-screen
1 2 |
from clear_screen import clear clear() |