Clearing the serial monitor

I'm using a heavy serial interface and instead of feeding constant data down on the arduino, is there any way to clear the screen, or write over the existing data?

I output 5 lines to the serial all at once (an ASCII GUI) that I'd like to either 'refresh' or overwrite instead of proceeding down and down...and down..... and down.....

No not with the built in monitor. However you can use others like putty to do this.

Grumpy_Mike: No not with the built in monitor. However you can use others like putty to do this.

How would I execute it with PuTTy? I mostly use that anyway.

I don't know what you mean by that. You would use standard TTY commands like carriage return, line feed, page feed, and the cursor control characters.

raacampbell:

Grumpy_Mike:
I don’t know what you mean by that. You would use standard TTY commands like carriage return, line feed, page feed, and the cursor control characters.

What he’s asking is whether there’s a one-line command that will cause the terminal to clear the screen. e.g. like the “clear” command in Bash.

Bingo.
Or a for loop to wipe the screen or just carriage return back to line 0.

Does this help? http://superuser.com/questions/555554/putty-clear-scrollback-from-commandline

raacampbell:
Does this help?
http://superuser.com/questions/555554/putty-clear-scrollback-from-commandline

on the site it mentions:
As jwd mentioned, you can clear both the screen and the scrollback buffer using clear && printf ‘\033[3J’

I add: Serial.print("\033[3J");
which removes the scrollbar, but how in the world do I put ‘clear’ as mentioned? I can’t just say clear && Serial.print("\033[3J"); without the compiler going ‘UH-OH!’

way handier website: http://web.mit.edu/gnu/doc/html/screen_10.html

For future reference, for anyone wanting to clear a screen Serial.print("\033[3J"); -- disables scrollbar Serial.print("\033[A"); -- up arrow on terminal screen, use this in a for loop for however many lines you have displaying and it will overwrite your output.