<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 22.11.2020 um 17:19 schrieb J.
Gareth Moreton via fpc-devel:<br>
</div>
<blockquote type="cite"
cite="mid:ea607a54-9a2a-3767-699c-2573c4e77e2f@moreton-family.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>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 <i>might</i>
accept the ANSI escape sequences, but I'm not sure.</p>
</blockquote>
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.<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>