China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 10:10
中国DOS联盟论坛 » 论坛回收站 » Color output tool for cmd: colorcmd View 2,083 Replies 1
Original Poster Posted 2010-09-21 01:18 ·  中国 上海 联通
新手上路
Credits 19
Posts 12
Joined 2008-10-11 10:48
17-year member
UID 128059
Gender Male
Status Offline
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 :(
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
doslike +40 2010-09-21 17:00
DOSroot -42 2010-09-21 19:16
抓住规律、结果整齐、代码简洁
Floor 2 Posted 2010-09-21 19:00 ·  中国 河北 廊坊 CNNIC会员联通节点
版主
★★
Credits 709
Posts 287
Joined 2010-01-13 12:05
16-year member
UID 158583
Gender Female
From 尖竹汶府
Status Offline
Personally I don't think it's very useful; after all, if you're playing with DOS, pure DOS is better!
弟控才是王道阿
Forum Jump: