I noticed a post in 2015 - did not see any new ones BUT.
Can an option to clear the serial console when a new sketch is initialized be re-implemented.
I think I remember the V1.x series doing so each time the program restarted but I may be mistaken.
Still it would be nice if a user settable preference could be added as I use the console a lot during my development phase as I suppose most people do and it can get very long.
Regards Colin
There is a similar request based on a special character: Clear Serial Monitor output field on receipt of control character · Issue #1726 · arduino/arduino-ide · GitHub . I know it's not exactly the same as what you suggested. And you're rightb that IDE 1.x indeed clears the serial monitor after a upload.
I could not immediately find your exact request so you can make a suggestion (feature request) on github (if you have a github account): https://github.com/arduino/arduino-ide/issues/new?assignees=&labels=type%3A+enhancement&projects=&template=feature-request.yml
And there is a request to implement a more full-fledged system: Serial Monitor plugin system to be able to add protocols like VT100, VTX, VTnnn, etc. · Issue #406 · arduino/arduino-ide · GitHub .
xfpd
February 21, 2024, 4:44pm
3
I like solutions that I control.
Colin [Lensman11]:
clear the serial console
void setup() {
for (int i = 0; i < 8; i++)
Serial.println();
}
What about the user who wants the old data, or is connected to a printer? Do they need to change 15 years of Arduino code to not clear the Serial Monitor?
Which version? I just tried with 1.8.19 and it does not clear it.
There was a couple of older versions of Arduino IDE that did this, but that behavior was unintentional and was considered a bug:
opened 05:31PM - 17 Sep 19 UTC
closed 11:47AM - 12 Feb 20 UTC
Type: Bug
Type: Regression
Component: IDE Serial monitor
I have just updated from 1.8.9 to 1.8.10, and am having a problem with the seria… l monitor.
I am working on a system using motor shields and motors. To assist with debugging I have serial.print statements to output to the monitor. When things go wrong I either need to remove the motor power, or disconnect the usb to stop the hardware getting damaged.
When I do this in 1.8.10 the displayed information disappears, meaning I can't track what has happened. This did not happen in 1.8.9.
Using Arduino Mega 2560
on Win 10 computer
opened 04:11AM - 01 Mar 20 UTC
closed 01:50PM - 01 Mar 20 UTC
feature request
Type: Duplicate
Component: IDE Serial monitor
It would be nice if it was possible to keep the serial buffer contents when disc… onnecting the USB serial port, or when uploading new firmware. Currently, either of these actions cause the buffer to be cleared.
and fixed in Arduino IDE 1.8.12:
arduino:master
← cmaglie:serial-mon-noautoclear
opened 04:07PM - 20 Jan 20 UTC
Fix #9234
Used the patch provided by @PaulStoffregen
I do not have access to my normal Windows PC. It must have been one of the following:
1.6.6
1.8.5
1.8.13
1.8.19
Sorry if I was the bringer of false information.
system
Closed
August 20, 2024, 10:08am
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.