title: Color output from shell command in Ruby
body: <p>Here's a simple Ruby script:</p>
  
  <pre><code>puts `ls -laG`
  </code></pre>
  
  <p>In OS X's ls, -G is for color.</p>
  
  <p>When run under bash, I get color output. When the above is run from a Ruby script, I don't see color or the ANSI escape sequences in the resulting output.</p>
  
  <p>From what I've read, my guess is it's because the script isn't running as a tty. Is there some way to run the command as if it were being run under a true tty session -- or something like that?</p>