sreno
June 21, 2022, 7:19pm
1
When selection text, it selects across window boundries; i.e. from monitor right into code window.
You cannot select the entire contents of the serial monitor window, only what is displayed.
Copied text from the monitor window has additional newlines compared to the release version. Also seems to have some weird formatting attached instead of pure text.
1 Like
Hi @sreno . Thanks for your reports!
These issues are being tracked by the Arduino IDE developers 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>:
![image](https://user-images.githubusercontent.com/1558080/152662108-23aa8254-be0d-4026-aa65-d57120a7447c.png)
### 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
![image](https://user-images.githubusercontent.com/1558080/152662265-638a9dd7-afdb-4a37-b19c-31d179ad41e4.png)
---
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
I have noticed this, but only when pasting the text into a composer field here on the Arduino Forum, and then only when it is outside a code block. I haven't observed that problem anywhere else. I mentioned it in passing in the fixed issue here:
opened 07:40AM - 31 Dec 21 UTC
closed 12:14AM - 22 Jun 22 UTC
conclusion: resolved
topic: code
type: imperfection
topic: serial monitor
## Describe the bug
It is sometimes useful to copy the text that was printed … by an Arduino board to Serial Monitor. For example, I sometimes copy CSV-style data into a spreadsheet program when I want to do further manipulation and analysis.
:bug: This is currently not possible to do with any multi-line text because the copied content has missing (or perhaps non-standard) line endings.
## To Reproduce
1. Upload a sketch that prints multiple lines of text to serial:
```cpp
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("hello");
delay(1000);
}
```
1. Open the Serial Monitor view in the Arduino IDE (**Tools > Serial Monitor**).
1. Select multiple lines of the text that was printed in the Serial Monitor view.
1. Paste it into a text editor or spreadsheet program.
:bug: The line endings are not present:
```
hellohellohello
```
## Expected behavior
Text copied from Serial Monitor has standard line endings.
## Arduino IDE version
2.0.0-rc3
## Operating system
Windows, Linux
## Operating system version
Windows 10, Ubuntu 20.04
## Additional context
After copying the following Serial Monitor output:
```text
a
a
a
```
This command reveals that there are no line endings:
```text
$ xclip -selection clipboard -out | xxd -p
616161
```
---
I'm not sure why, but I do get line breaks when I paste the text to the Arduino Forum (Discourse) composer field. In that case, the problem is opposite because I get double spaced text.
But when pasting to VS Code, Notepad++, LibreOffice Calc, GitHub comment field, etc., even a fenced code block on the forum, I get no line breaks.
---
Related:
- https://github.com/arduino/arduino-ide/issues/105
---
Originally reported at:
- https://forum.arduino.cc/t/serial-monitor/698844
- https://forum.arduino.cc/t/serial-monitor-text-copying-not-quite-right/938730
- https://forum.arduino.cc/t/each-day-a-new-problem/937997/3
- https://github.com/arduino/arduino-ide/issues/427#issuecomment-885018751
- https://forum.arduino.cc/t/text-selection-serial-monitor/1005262
Please provide more details about this.
sreno
June 23, 2022, 5:40pm
3
When I past copied output from the serial monitor pane into Excel, by default it arrives with the character color (grey) of the text where it is highlighted in the monitor pane. It is obviously arriving is RTF of something similar. 1.8.19 does not exhibit this issue. Pasted text is in plain bare test with the automatic font color (black).
sreno
June 23, 2022, 5:41pm
4
Can screen shot be posted in this forum?
Yes. You can the screenshot to a reply here by doing any one of the following:
Press Ctrl +V to paste the screenshot from the clipboard.
Save the screenshot as an image and then drag and drop it into a forum reply.
Save the screenshot as an image, click the upload button ( ) in the post composer toolbar, and then select the image file:
sreno
June 23, 2022, 6:45pm
7
Better view of what gets pasted with +v
system
Closed
December 20, 2022, 6:47pm
9
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.