CaitlynMainer / wintee

Automatically exported from code.google.com/p/wintee
0 stars 0 forks source link

Color command is lost #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When the COLOR command is used in the piped batch file, the color of
standard out is not changed.

Sample:

::test.bat
::------------------
@echo off
cls
color 4c
echo WARNING !
pause
::------------------

If you execute "test.bat" alone, the output is red text on a dark red
background.

But "test.bat | wtee test.log" leaves the screen black with white text.

Original issue reported on code.google.com by goo...@gmail.com on 18 Nov 2009 at 10:37