Open
Description
Describe the problem
Some command line tools generate an animated progress bar by using a carriage return without newline to repeatedly overwrite the same line.
🐛 This does not work when their output is printed in the "Output" view. The carriage return causes a line break to be added.
To reproduce
- Upload a sketch via the Arduino CLI command line interface to a board that uses an upload tool that produces an animated progress bar (e.g., Nano 33 BLE).
🙂 There is a nice looking animated progress bar:
- Do the same using Arduino IDE 1.8.19.
🙂 There is a nice looking animated progress bar:
- Do the same using Arduino IDE 2.x
🐛 The progress bar is not animated:
Expected behavior
The current line is overwritten from the start of the line in the "Output" view with subsequent text.
For example, this text:
foobar\rbaz
Should result in this content in the output view:
bazbar
Arduino IDE version
2.0.0-snapshot-4e590ab
Operating system
Windows, Ubuntu
Operating system version
Windows 10, Ubuntu 20.04
Additional context
Support was added in Arduino IDE 1.x by arduino/Arduino#9954
Originally reported at https://forum.arduino.cc/t/arduino-2-0-0-mac-ugh-why-so-backwards/1033549
Additional reports
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
Related to content of the project itselfRelated to content of the project itselfRelated to the Theia IDE frameworkRelated to the Theia IDE frameworkPerceived defect in any part of projectPerceived defect in any part of project