title: Color ouput with Swift command line tool
body: <p>I'm writing a command line tool with Swift and I'm having trouble displaying colors in my shell. I'm using the following code: </p>
  
  <pre><code>println("\033[31;32mhey\033[39;39m")
  </code></pre>
  
  <p>or even</p>
  
  <pre><code>NSFileHandle.fileHandleWithStandardOutput().writeData("\033[31;32mhey\033[39;39m".dataUsingEncoding(NSASCIIStringEncoding, allowLossyConversion: true)!)
  </code></pre>
  
  <p>It works when I use a simple echo in php (the text is displayed in green) but is there a reason it doesn't work in a Swift command line tool?</p>
  
  <p>Thanks!</p>