is there something can be sent to the serial monitor to clear the screen that does what manually selecting the clear output icon does?
If you would use a serial terminal program, then there might be an option to set the terminal emulation mode. You need one with the ANSI escape sequence. Then you can send a command to clear the screen, but you would also be limited to 80x24 characters. You can use the ASCII characters to draw lines and make blocks, to bring back the 1980's. Watch MAS*H on your CRT television and drive around in your Datsun to complete the feeling of the VT100 era.
In other words: No, not with the built-in serial monitor of the Arduino IDE. But it supports UTF-8 characters, so you can make nice things with graphical characters.
You could send 50 to 100 emtpy lines.
It won’t clear the buffer (50,000 characters?) but it does clear the screen.
a7
Koepel:
complete the feeling of the VT100 era.
i used a VT-125 on my master's thesis to display heartbeat waveforms.
was hoping it supported something similar to UNIX clear or ANSI home
alto777:
You could send 50 to 100 emtpy lines.It won’t clear the buffer (50,000 characters?) but it does clear the screen.
a7
My preference would be to send just the newlines (line feeds), no need for a lot of redundant carriage returns, and the serial monitor appears to ignore carriage return anyway. Twenty-six should be sufficient for the default window size.
Implementing escape sequences in the serial monitor would not necessarily be a good thing, since erroneous output could inadvertently generate an escape sequence and alter useful debugging information.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.