0

Can I clean my console after I print something?

13th Mar 2018, 11:03 PM
mateo quiceno toro
mateo quiceno toro - avatar
3 Answers
+ 4
SoloLearn's code playground does not support live interactivity nor does it have a command-prompt/terminal. Therefor, there's no need for such commands. Now, if you're talking about clearing the command-prompt/terminal on your local machine, then yes, you can. You just have to find the needed libraries/modules/utilities to import/include in order to access this feature. For example, in python, it's as simple as importing a module called "os" and writing something like os.system('clear') or os.system('cls'). You'll likely have a method similar to that (importing and using other utilities to do it).
14th Mar 2018, 1:57 AM
Fox
Fox - avatar
0
You can type 'clear' to get a clean console, but this will not remove your printing. If you scroll up you can still see it, but you kinda start on a fresh page.
13th Mar 2018, 11:08 PM
Bram