//https://vt100.net/docs/vt100-ug/chapter3.html char vt100erase[] = "\e[2J"; char sh[] = {'\e', '[', '1', '0', ';', '0'}; char sr[] = {'\e', '[', 0xa, ';', 0x03}; char sd[] = {'\e', '[', '1', '1', ';', '8'}; #define ESC '\e' void setup() { Serial.begin(9600); while (!Serial) ; Serial.print(vt100erase); } void vt100home() { Serial.print("\e[H"); } void vt100setcursor(char x, char y) { Serial.print("\e["); Serial.print(x+'0'); Serial.print(";5H"); } int i = 0; void loop() { vt100setcursor(3, (char)i); Serial.print(i); i++; delay(1000); if (20 < i ) i = 0; // put your main code here, to run repeatedly: }