Can you remove already printed chars from the serial monitor

hi I recently came across \b to delete the last char from the console in python, and was wondering if such a thing exist for Arduino serial monitor?

it would make text animating with Arduino cooler.

let me know if such thing exist for Arduino or alterative method to do so.

No. Because, it's not a terminal. But that will work in a terminal emulator program like Putty or Tera Term.

thanks that's disappointing.

Only if you can't run a terminal emulator. :slight_smile:

Use Putty or TeraTerm instead of the serial monitor.

No. The Serial Monitor is especially primitive in terms of "terminal emulation", and doesn't support backspace OR any of the more advance "smart terminal" features like arbitrary cursor motion.

You can use another terminal emulation program (as @anon57585045 suggests), but they'll lack the "close integration" with the IDE (going idle when you do upload, restarting when the upload is complete.)

Or, you can use the Serial.takeBack() function to un-send characters that you have already sent.

Just kidding...

Or you can use putty etc on a second serial output.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.