<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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>
    <p>Gareth aka. Kit</p>
    <div class="moz-cite-prefix">On 22/11/2020 16:05, Sven Barth via
      fpc-devel wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFMUeB_saD=NopoULyqG-FM0phkH7tAXdwZiRZLXELXx4QQtKA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">Michael Van Canneyt via
              fpc-devel <<a
                href="mailto:fpc-devel@lists.freepascal.org"
                moz-do-not-send="true">fpc-devel@lists.freepascal.org</a>>
              schrieb am So., 22. Nov. 2020, 17:03:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
              <br>
              On Sun, 22 Nov 2020, Jonas Maebe via fpc-devel wrote:<br>
              <br>
              > On 22/11/2020 16:03, Ryan Joseph via fpc-devel wrote:<br>
              >> What version of the trunk is this in and what's
              the flag to enable it? My trunk is maybe 30 days old and I
              don't see any way to get the colors.<br>
              ><br>
              > It's only enabled on Linux and Windows currently.<br>
              <br>
              Is there a switch to disable it ?<br>
              The lazarus parser doesn't need color, it supplies it's
              own in the messages dialog.<br>
              <br>
              I looked in the help but could not see one, maybe it was
              forgotten.<br>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">It's only enabled if the output is to a TTY and
          not a pipe (analogous on Windows). </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Regards, </div>
        <div dir="auto">Sven </div>
        <div dir="auto">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
            </blockquote>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
    </blockquote>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>