diff options
-rw-r--r-- | mysql-test/lib/mtr_report.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm index 5e42b342df1..7a7753d9b2d 100644 --- a/mysql-test/lib/mtr_report.pm +++ b/mysql-test/lib/mtr_report.pm @@ -46,7 +46,7 @@ my %color_map = qw/pass green skipped yellow reset reset/; sub xterm_color { - if (-t STDOUT and defined $ENV{TERM} and $ENV{TERM} =~ /xterm/) { + if (-t STDOUT and defined $ENV{TERM} and $ENV{TERM} =~ /xterm/ or -t STDIN) { syswrite STDOUT, color($color_map{$_[0]}); } } |