How do you get the console to automatically clear when running your program each time?

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?

1 Like

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!

1 Like

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.

1 Like

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 and I didn’t think it worked.

Maybe I should have run it more times. :man_shrugging:

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.

1 Like

me too its bad update they do

1 Like