title: Passing stdout colored output to grunt output
body: <p>I'm trying to create a grunt custom task that runs mocha tests but I can't figure out how to have grunt take the colored output from mocha and display it as it does when running the mocha command directly. Ie: grunt strips out the colors or does not pass them through. Here's the grunt task:</p>
  
  <pre><code>var exec = require("child_process").exec;
  grunt.registerTask('mocha', 'Run unit (Mocha) tests.', function () {
      var done = this.async();
      var cmd = "mocha -R Spec tests/mocha/*.js";
      exec(cmd, function (error, stdout, stderr) {
          if (stdout) {
              grunt.verbose.or.write(stdout);
              done();
          }
      });
  });
  </code></pre>
  
  <p>I realize there's a grunt-mocha plugin I could use (and have used) but I'm trying to eliminate dependencies and will also be doing some customization on this task.</p>
  
  <p>Thanks!</p>