Am 22.11.2020 um 17:19 schrieb J. Gareth Moreton via fpc-devel:

I believe that to enable colour on a Windows console, you need to use an API function, which can get a bit clumsy because there isn't an equivalent to \e[0m to reset to default, so you have to retrieve the current console colour beforehand.  Windows 10 /might/ accept the ANSI escape sequences, but I'm not sure.

On Windows the code checks whether the VT100 compatibility is available that was introduced with some Windows 10 update and only uses the VT100 codes in that case.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to