[fpc-devel] Compiler message colour scheme
Sven Barth
pascaldragon at googlemail.com
Sun Nov 22 17:40:55 CET 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20201122/5b465892/attachment.htm>
More information about the fpc-devel
mailing list