title: QTextEdit and colored bash-like output emulation
body: <p>I have an escape sequences in a text, like </p>
  
  <pre><code>char const * text = "\e[1;33m" "some colored text" "\e[0m";
  </code></pre>
  
  <p>Which usually printed in terminal. But I want to forward this text in <strong>QTextEdit</strong>.</p>
  
  <p>What is the simpliest way to make such text in <strong>QTextEdit</strong> colored? How to perform a filtering of escape sequences, i.e. how replace its with proper text formatting?</p>
  
  <p>I think there is <strong>QSyntaxHighlighter</strong>-aided solution possible, but I don't know what to do with escape sequences itself and how to hide they from the output.</p>