aurelz October 13, 2022, 5:33pm 1 Hi, I would like to copy and paste a colomn of data displayed on the serial monitor (longer than my screen), and it doesn't really work. Selecting the first lines and then scrolling down to the bottom lines makes it "forget" the first lines in the selection. It would be much easier than using Processing or Rstudio, so I would like to do it that way. Any idea? Thanks
3 Likes
The best thing to do (my opinion) is to use a decent terminal program that allows you to save to file.
3 Likes
aurelz October 13, 2022, 6:16pm 4 Do you mean an IDE like Eclipse or Visual Studio? If that is what you meant, well it's quite annoying to do that for this only reason... Arduino IDE 2.0 seems good, except for that.
aurelz October 13, 2022, 6:17pm 5 Ctrl + A selects the code, not the monitor output, right?
1 Like
No, I mean a terminal program. Realterm, putty, minicom, ...
1 Like
gcjr October 13, 2022, 7:01pm 7
Coding_Badly:
Ctrl + A then Ctrl + C.
make sure you select the serial monitor screen.
but i've had problems at time, especially when there's a lot of output
aurelz October 13, 2022, 7:14pm 8 Yes, but apparently it doesn't work
2 Likes
aurelz October 13, 2022, 7:19pm 9 Ok, yes I guess it could work, but I wish I could copy-paste data straight from the arduino IDE. Thanks for the suggestion anyway.
1 Like
gcjr October 13, 2022, 8:25pm 10 here's my screen
... WiFi connecting - wally Pan0rama ... WiFi connecting - wally Pan0rama ... WiFi connecting - wally Pan0rama ... WiFi connecting - wally Pan0rama ... WiFi connecting - wally Pan0rama WiFi connected 192.168.0.172 ... JMRI connecting - 192.168.0.41 4445 JMRI connected - 192.168.0.41 4445 wifiSend: antidisestablishmentarianism wifiSend: ok rl
jhaine October 13, 2022, 8:42pm 11 It does work well, but you have to disable auto scrolling (or be very nimble). ctrl+A ctrl+c. Make sure the focus is on the serial monitor screen. Paste into Excel or Word or whatever. I have use it a lot for getting logged data for analysis.
alto777 October 13, 2022, 9:59pm 12 Or⦠hold down the reset button.
a7
Hi, On the screen of the serial monitor there is a control box autoscroll When checked, when the screen is "full", it automatically moves up, and when it receives a new line it actually erases the selection for copying the content. But if you uncheck this option, you can select and keep selected the value and copy. Pay attention, because when you reach the end of the screen, the line will not move, but using the mouse you can make the movement if what you want to copy is already off the screen.
Hi @aurelz . The Arduino IDE developers are tracking this bug in the Serial Monitor here:
opened 05:58AM - 19 Jun 22 UTC
topic: code type: imperfection topic: serial monitor
### Describe the problem When selecting text on the serial monitor (with the co⦠nnected device paused) upon scroll the range of the selection shifts in unpredictable patterns (at least i didn't see a reproducable pattern) which prevents selecting more then one page of the output. As of #812/#105 using ctrl+a is also not an option to select text in that tab. As i do not have the problem of new text triggering a redraw which removes the selection, i do not consider this a duplicate of #812/#105, but feel free to correct me. ### To reproduce * print multiple pages text on the serial monitor once e.g. in the setup() function. * when all text is received select a bit of it * scroll the output up and down a bit ### Expected behavior The selection should stay between the first and last selected characters, and not randomly jump around. ### Arduino IDE version 2.0.0-rc7-nightly-20220615 ### Operating system Windows ### Operating system version 10.0.19044.1706 Pro ### Additional context My Nightly Build is 4 days old, but the 3 commits since then do not have any relations to this issue. ### Issue checklist - [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=) - [X] I verified the problem still occurs when using the latest [nightly build](https://github.com/arduino/arduino-ide#nightly-builds) - [X] My report contains all necessary details
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
aurelz October 15, 2022, 12:46pm 15 All right, thanks for the info
Is there any way to shut off the auto-scrolling feature in the serial monitor? I would like to copy the serial monitor messages but I am unable to copy (CTRL-A) the serial monitor when it is scrolling, I'm running arduino IDE version 2.02 on a Windows 10 64-bit machine.
Thanks in advance!
Hi @iamiretheo . Click the icon near the right side of the Serial Monitor view toolbar ("Toggle Autoscroll ") to switch auto scrolling on and off:
1 Like
aurelz February 18, 2023, 6:13pm 18 Hi again, I am coming back to this issue. I haven't found any way to copy-paste the serial monitor output easily. If you select a long column of output data, and start scrolling down, your selection loses what is no longer on the screen. So it seems like you have to go little by little, making it a long and annoying process. Disabling the Autoscroll Toggle doesn't change anything for me. @ptillisch , the github thread doesn't seem to make progress, unfortunately...
4 Likes
I'm running 2.0.3 and confirm it's not working. Even ctrl-a doesn't work - that only highlights the code section even if focus was on the serial monitor originally. No matter how much I highlight with the mouse, and hit ctrl-c, I only get ~ 32 lines.
3 Likes
The developers are tracking that bug separately from the other problem, here:
opened 11:30PM - 05 Feb 22 UTC
topic: code type: imperfection topic: serial monitor
### Describe the problem Let's say I have 1000 lines of debug output in the sβ¦ erial monitor window, how do I do a select all, such that I can copy it to the clipboard? With 1.8.19, I click the mouse into the monitor window and hit <kbd>**Ctrl**</kbd>+<kbd>**A**</kbd> and it selects all of the text. I can then hit <kbd>**Ctrl**</kbd>+<kbd>**C**</kbd> to copy to clipboard. ### To reproduce Run a sketch and try to select all of the text from Serial Monitor. π The contents of the sketch editor are selected when you press <kbd>**Ctrl**</kbd>+<kbd>**A**</kbd>:  ### Expected behavior I expected hitting <kbd>**Ctrl**</kbd>+<kbd>**A**</kbd> would select everything in that window not the source window. ### Arduino IDE version #### Original report Nightly build #### Last verified with 9a6a457bc44fb16f646b9e61a9e8b336b3666412 ### Operating system Windows ### Operating system version Not provided ### Additional context And/Or alternative solution - context menu like for example TyCommander  --- Additional reports - https://github.com/arduino/arduino-ide/issues/899 - https://github.com/arduino/arduino-ide/issues/1817 - https://github.com/arduino/arduino-ide/issues/1654 - https://github.com/arduino/arduino-ide/issues/1918 - https://forum.arduino.cc/t/copy-of-the-serie-monitor-output/1056049/1 - https://forum.arduino.cc/t/copy-of-the-serie-monitor-output/1056049/5 - https://forum.arduino.cc/t/serial-monitor-copy-only-copied-the-visible-logs/1051846/1 - https://forum.arduino.cc/t/serial-monitor-copy-only-copied-the-visible-logs/1051846/4 - https://forum.arduino.cc/t/using-v-2-0-serial-monitor-print/1034093 - https://forum.arduino.cc/t/serial-monitor-issues-hopefully-fixed-before-release/1026548 - https://forum.arduino.cc/t/serial-output-window-select-all-copy/1024251 - https://forum.arduino.cc/t/coping-multiple-lines-on-monitor-screen/1019346 - https://forum.arduino.cc/t/text-selection-serial-monitor/1005262 - https://forum.arduino.cc/t/upgrade-the-serial-monitor-for-better-function/980128 - https://forum.arduino.cc/t/ide-2-0-copy-from-serial-monitor-limited/1078391 - https://forum.arduino.cc/t/random-seed-does-not-deliver-random-numbers/1006762/10 - https://forum.arduino.cc/t/copying-from-serial-monitor/1071503/3 - https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/5 - https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/19 - https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/21 - https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/23 - https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/32 - https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/38 - https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/39 - https://forum.arduino.cc/t/arduino-ide-2-0-3-serial-monitor-cant-use-cntrl-a-to-capture-everything/1095266 - https://forum.arduino.cc/t/arduino-ide-serial-monitor-bug/1112653/7 - https://forum.arduino.cc/t/why-does-click-into-serial-monitor-ctrl-a-mark-the-source-code/1128016 - https://forum.arduino.cc/t/cannot-select-all-of-serial-data/1158236 - https://forum.arduino.cc/t/how-can-i-copy-the-whole-content-of-the-serial-monitor/1168904/1 - https://forum.arduino.cc/t/your-reason-for-not-switching-to-the-2-x-ide/1176322/47 #### Related - https://github.com/arduino/arduino-ide/issues/1081 ### Issue checklist - [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=) - [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds) - [X] My report contains all necessary details
2 Likes