Hterm Serial monitor of awesomeness makes this SIMPLE.
Get it: HTerm - der-hammer ( windows & linux )
Its done using a 'Clear At' function. I use the '!' character to tell the terminal when to clear. A test sketch is below:
void setup() {
// put your setup code here, to run once:
Serial.begin( 115200 );
}
void loop() {
Serial.print( F("This is line 1, it has text saying its line 1" ) );
delay( 500 );
Serial.print( '!' );
Serial.print( F("This is line 2, there are many lines like it, but this one is mine." ) );
delay( 500 );
Serial.print( '!' );
}
HTERM has all the common settings right on the front, you can see the clear at function circled, and the connection stuff in the top right oops I mean left. The '!' has an ascii code of 33 so I input that:
Each line is displayed for the delay, then cleared when the Arduino sends '!'
