Every time I run my code the console still has the previous program in the console. This has only just started to happen in the past week. How do you change the settings to clear the console EVERY time you run your program?
Hi @mrlinnell1950 , welcome to the forums!
This is a new feature that Replit has recently added.
You cannot remove it, but you can clear previous run history by clicking the Trash icon above the Console.
Hope this helps!
Some feedback if I may - this is a poor feature to add - particularly for students I am teaching. It is frustrating that students will now be confused with a cluttered console which will lead to losing confidence in programming.
Hi @mrlinnell1950 !
You can put a vote in this topic:
Meanwhile, Replit probably won’t change it and you’ll have to live with this.
I don’t know what language you are using, but a “workaround” in python to remove previous runs is described here:
That’s interesting because I tried changing the run
command to clear && python3 main.py
and I didn’t think it worked.
Maybe I should have run it more times.
Can you elaborate on that?
Clearing the console only clears the contents of the current run, so the workaround pushes away the previous runs with newlines, then clears those newlines so that the output near the top.
I had no idea that was possible.
me too its bad update they do