title: Mono console app in 256 color terminal
body: <p>Do mono apps support 256 color terminals?</p>
  
  <p>my program is giving very strange output in a 256 color environment.</p>
  
  <p>Should I just check the $TERM value and disable colour entirely if its 256 color?</p>
  
  <p>My output looks like this:</p>
  
  <pre><code>1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t31%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;1%;mYou have not registered
  1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t31%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;1%;mMOTD File is missing
  1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t30%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;0%;mThetis joined #sanctuary.
  1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t36%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;6%;mPlugin - Factoids - Saved.
  1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t36%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;6%;mPlugin - Factoids - Saved.
  1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t30%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;0%;mChanMess 77 and still going...
  1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t36%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;6%;mPlugin - Factoids - Saved.
  1%{8}%&lt;%t37%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;7%;m1%{8}%&lt;%t36%e%p1%{16}%&lt;%t9%p1%{8}%-%d%e38;5;6%;mPlugin - Factoids - Saved.
  </code></pre>