-
-
Notifications
You must be signed in to change notification settings - Fork 431
Output view does not correctly handle carriage return #1473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a problem in the console text area of the IDE becuase running We had this problem before in the Arduino IDE 1.8.x, it basically boils down to the text area not correctly handling the
To render the progress bar, IMHO this issue should be moved to the Arduino IDE repo. |
Another question is: isn't the "console" text area already supporting some terminal control standard? If we must implement all control characters from an ANSI terminal it will become a project on its own... maybe there is already an implementation of a "terminal" or a "console" text area that support ANSI (or vt100 or any other terminal standard) that can be reused. |
Thank @cmaglie. I didn't interpret the gRPC response content correctly. You are correct that Arduino CLI is handling it correctly and this is a bug in Arduino IDE. I have updated the issue and transferred it to the correct repo. |
The Output view is an editor and not a terminal. If we want terminal behavior, we must use a |
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
🙂 There is a nice looking animated progress bar:
🙂 There is a nice looking animated progress bar:
🐛 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:
Should result in this content in the output view:
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
The text was updated successfully, but these errors were encountered: