[Lazarus IDE] Console output does not show ANSI color escape sequences like it does in a standard shell
Hello everyone,I am having an issue with a console application I am developing in Lazarus. The program uses standard ANSI escape sequences to display colored text in the terminal.When I run the compiled executable directly inside a standard system shell/terminal, the colors render perfectly. See first screenshot attached.
However, when I run the project directly from within the Lazarus IDE (using the Run Output or Debug Console window), the raw escape sequences (like [31m) are printed as plain text characters instead of changing the text color. See second screenshot attached.
I have attached a zip file containing the code. This is not a problem for me but I wanted to know if there is someway to make the lazarus ide Console In/Out window render the escape sequences?
Here are my system details:
OS: Linux Debian
Lazarus Version: 4.99
FPC Version: 3.2.2