From: Allan Odgaard <mailinglist@textmate.org>
> I've got a shell script that I tried to make a little more readable with ANSI color. It works when I run it from the command line, but when I have it open in TM2 (and 1) and press Cmd-R, the script executes but I get no color.
Escape codes for colors is a “terminal” feature, meaning that only scripts running in a terminal should use such escape codes. TextMate does not offer a terminal environment when running scripts.