Add ANSI code support in serial monitor #2169
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
topic: serial monitor
Related to the Serial Monitor
type: enhancement
Proposed improvement
Describe the request
The IDE, like many other development environments and applications, uses colour, reverse video text, flashing text and screen control (position, clear screen, etc) all of which, when used appropriately aids readability.
However, this capability is not extended to the serial monitor, meaning that sketches can't use these commonly available features.
The request is to add support for ANSI codes, thus allowing the screen to be manipulated more effectively with colour, cursor manipulation, screen clear, flashing text, etc. This allows for error conditions to be more readable in output text for example.
ANSI codes are defined here : [https://en.wikipedia.org/wiki/ANSI_escape_code](ANSI Codes)
Describe the current behavior
The terminal does not respond to ANSI codes and simply prints them out. Competing serial monitoring tools such as PuTTY and minicom correctly respond to such codes.
Arduino IDE version
2.1.1
Operating system
Windows
Operating system version
10 22H2
Additional context
Addition of this feature would provide consistency on the use of colour in the main code and debug output windows and allow greater control from sketches for improved formatting and visualisation of sketch output.
Issue checklist
The text was updated successfully, but these errors were encountered: