title: Enable ANSI sequences in windows terminal
body: <p>I stumbled upon an interesting issue
  in Windows:</p>
  <pre><code>
  C:\&gt; lua
  &gt; print(&quot;\x1b[95mMagenta\x1b[0m&quot;)
  -[95mMagenta-[0m
  
  </code></pre>
  <p>But if I run <code>os.execute()</code> even with an empty command,
  before it, it works as expected:</p>
  <pre><code>C:\&gt; lua
  &gt; os.system(&quot;&quot;); print(&quot;\x1b[95mMagenta\x1b[0m&quot;)
  Magenta
  </code></pre>
  <p>(the last line is printed with Magenta color)</p>
  <p><a href="https://i.stack.imgur.com/89lOg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/89lOg.png" alt="terminal screenshot" /></a></p>
  <p>Why it happens, and how can I make ANSI codes work
  without calling <code>os.execute()</code>?</p>