Purpose: find a color output tool to use under cmd, without dropping back to command.
I looked up some materials about displaying colored strings in batch files. The situation is roughly like this:
driver -> DOS program -> Windows program
ANSI.SYS -> WRITEXT.EXE -> findstr /a -> colorcmd.exe
*.com ?.exe
So far this is the only one I've found for the Windows CLI: colorcmd.zip
---------------------------------------------------------------------------------------
colorcmd.exe
7.5 k, Ruby source included.
Found here: http://www.2maomao.com/blog/win-color-cmd-tool/
---------------------------------------------------------------------------------------
* findstr /a has a small problem. Because it relies on the carriage return for a second operation to complete it,
and the command line doesn't really refresh the screen much, sometimes that colon is still visible :(
I looked up some materials about displaying colored strings in batch files. The situation is roughly like this:
driver -> DOS program -> Windows program
ANSI.SYS -> WRITEXT.EXE -> findstr /a -> colorcmd.exe
*.com ?.exe
So far this is the only one I've found for the Windows CLI: colorcmd.zip
---------------------------------------------------------------------------------------
colorcmd.exe
7.5 k, Ruby source included.
Found here: http://www.2maomao.com/blog/win-color-cmd-tool/
---------------------------------------------------------------------------------------
* findstr /a has a small problem. Because it relies on the carriage return for a second operation to complete it,
and the command line doesn't really refresh the screen much, sometimes that colon is still visible :(
Recent Ratings for This Post
( 2 in total)
Click for details
抓住规律、结果整齐、代码简洁
