? .cache
? .project
? drush_nocolor.patch
? commands/action
? includes/table.inc
Index: includes/drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/includes/drush.inc,v
retrieving revision 1.43
diff -u -p -b -r1.43 drush.inc
--- includes/drush.inc	10 Sep 2009 04:17:54 -0000	1.43
+++ includes/drush.inc	15 Sep 2009 20:18:50 -0000
@@ -299,6 +299,7 @@ function drush_get_option_help() {
   $options['-u, --user']               = dt("Specify a user to login with. May be a name or a number.");
   $options['-b, --backend']            = dt("Hide all output and return structured data (internal use only).");
   $options['-p, --pipe']            = dt("Emit a compact representation of the command for scripting.");
+  $options['-n, --nocolor']            = dt("Suppress color highlighting on log messages.");
   return $options;
 }
 
@@ -683,9 +684,16 @@ function drush_pipe_output() {
  *   False in case of an error or failed type, True in all other cases.
  */
 function _drush_print_log($entry) {
+  if (drush_get_context('DRUSH_NOCOLOR')) {
+    $red = "[%s]";
+    $yellow = "[%s]";
+    $green = "[%s]";
+  }
+  else {
   $red = "\033[31m\033[1m[%s]\033[0m";
   $yellow = "\033[1;33m\033[1m[%s]\033[0m";
   $green = "\033[0;33m\033[1m[%s]\033[0m";
+  }
 
   $verbose = drush_get_context('DRUSH_VERBOSE');
   $debug = drush_get_context('DRUSH_DEBUG');
Index: includes/environment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/includes/environment.inc,v
retrieving revision 1.40
diff -u -p -b -r1.40 environment.inc
--- includes/environment.inc	19 Aug 2009 02:33:57 -0000	1.40
+++ includes/environment.inc	15 Sep 2009 20:18:50 -0000
@@ -429,6 +429,9 @@ function _drush_bootstrap_drush() {
   drush_set_context('DRUSH_AFFIRMATIVE', drush_get_option(array('y', 'yes', 'b', 'backend'), FALSE));
   drush_set_context('DRUSH_SIMULATE',    drush_get_option(array('s', 'simulate'), FALSE));
 
+  // Suppress colored logging
+  drush_set_context('DRUSH_NOCOLOR', drush_get_option(array('n', 'nocolor'), FALSE));
+
   // Find any command files that are available during this bootstrap phase.
   _drush_find_commandfiles(DRUSH_BOOTSTRAP_DRUSH);
 }
