On Tue, Jan 4, 2011 at 5:44 PM, nathan binkert <n...@binkert.org> wrote:
> I think we talked about this and I'm ok with what we ended up on the mailing > list... Bonus points if you colorize the output :)... >> Blue = '\033[94m' >> Yellow = '\033[94m' >> Green = '\033[92m' >> End = '\0330m' >> CCCOMSTR = Blue + ' [ CC] ' + Yellow + '$TRANSFORMATION' + End >> >> Neat idea, but you need to check "sys.stdout.isatty()" and conditionally > add the color. Then you're going to want a way to override that if you're > piping through less :) Seems like we could add a --color option to the > SCons command line. > > It actually crossed my mind earlier today to use colorization to distinguish the common prefix part of the source path from the source-specific part, as a way of eliminating the ambiguity of how to form the target. The isatty check would take care of the less problem, though... Steve
_______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev