Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Add copy button to the serial monitor

Open Pieter12345 opened this issue 6 years ago • 8 comments

Add a copy button to the serial monitor that copies the text in the serial monitor output area to the system clipboard. This is useful since ctrl-a + ctrl-c does not work when the serial monitor is spammed at a high rate.

Related: https://github.com/arduino/arduino-ide/issues/1729.

Pieter12345 avatar Mar 11 '19 23:03 Pieter12345

@ArduinoBot build this please

facchinm avatar Mar 12 '19 09:03 facchinm

:white_check_mark: Build completed.

Please test this code using one of the following:

:arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-8640-BUILD-835-linux32.tar.xz :arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-8640-BUILD-835-linux64.tar.xz :arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-8640-BUILD-835-windows.zip :arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-8640-BUILD-835-macosx.zip :arrow_down: http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-8640-BUILD-835-linuxarm.tar.xz

:information_source: The linuxarm build is still experimental and may not be always available.

ArduinoBot avatar Mar 12 '19 09:03 ArduinoBot

Rebased onto master (force-push). No additional changes were made.

Pieter12345 avatar Mar 18 '19 16:03 Pieter12345

I just started to wonder if we can avoid the button by adding a contextual menu on the serial monitor itself with 2 entries:

  • copy selection
  • copy all Would it make sense? @per1234 @tigoe @mbanzi

facchinm avatar Mar 20 '19 09:03 facchinm

I like the context menu idea. It seems like a fairly intuitive UI.

per1234 avatar Mar 20 '19 09:03 per1234

My usual solution to this is to turn off autoscroll, then use a crtl-A, crtl-C. It makes me think it's worth adding a keyboard control for autoscroll, so you could use keys to do this all the way through. Would be better for accessibility too. context menus can be a pain for screen readers.

tigoe avatar Mar 20 '19 10:03 tigoe

Rebased this PR onto master.

Pieter12345 avatar Mar 29 '19 01:03 Pieter12345

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 09 '21 12:04 CLAassistant