Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Output view does not correctly handle carriage return #1473

Open
Labels
topic: codeRelated to content of the project itself topic: theiaRelated to the Theia IDE framework type: imperfectionPerceived defect in any part of project
@per1234

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

  1. 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:
    cli3
  2. Do the same using Arduino IDE 1.8.19.
    🙂 There is a nice looking animated progress bar:
    ide-1 x
  3. Do the same using Arduino IDE 2.x
    🐛 The progress bar is not animated:
    ide-2 x

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

No one assigned

    Labels

    topic: codeRelated to content of the project itself topic: theiaRelated to the Theia IDE framework type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /