Skip to content

Only the visible data can be copied from the serial Monitor #2098

Closed as not planned
@IvanchoIotata

Description

@IvanchoIotata

Describe the problem

When the data is long enough it cannot be copied from the Serial Monitor.
Arduino 1.8.X does it. Also Ctrl + A works to select all the data on the Serial Monitor and then Ctrl+C will copy it to the clipboard.
Arduino IDE 2.X.X can select and then copy only the data that is visible.

To reproduce

This code will generate enough lines to scroll out of the visible window. Try to select the whole data including the portion that is scrolled out.

void setup() {
  Serial.begin(115200);
  delay(500);
  for(int i = 0; i < 101; i++){
    Serial.print( i );
    Serial.print("\t");
    Serial.println( i + i );
  }
}

void loop() {}

Expected behavior

To be able to select and copy more than the visible data from the Serial monitor by dragging your cursor through the area or at least use Ctrl+A to select all the data displayed on the Serial monitor. That has been working on Arduino 1.X.X with no problem

Arduino IDE version

Arduino IDE 2.1.0

Operating system

Windows, Linux, macOS

Operating system version

This is universal behavior

Additional context

This issue has been persistent since the alpha testing of Arduino IDE 2.
There are several posts that discuss it but I have not seen detailed explanation with a code that reproduce it.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions