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-06-30 17:52
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to set the font color under pure DOS? View 1,685 Replies 5
Original Poster Posted 2006-10-04 02:47 ·  中国 北京 教育网
初级用户
Credits 68
Posts 15
Joined 2005-11-23 16:57
20-year member
UID 45794
Status Offline
How to set the font color under DOS?
Floor 2 Posted 2006-10-04 03:07 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Search more by yourself for the keyword ANSI

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-10-04 03:09 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Use the forum "Search" function, the search term is used: font color There are many very detailed answers ~ : )
Floor 4 Posted 2006-10-13 06:58 ·  中国 重庆 璧山区 电信
中级用户
★★
Credits 235
Posts 109
Joined 2006-08-24 00:52
19-year member
UID 61161
Gender Male
Status Offline
The command color. color 4f means the background is red and the font is bright white.
Floor 5 Posted 2006-10-13 09:36 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

Command color color 4f Background is red, font is bright white

The owner's question is how to "set the font color in pure DOS?", The color command you mentioned is an external command, and it doesn't seem to exist in pure DOS?
Floor 6 Posted 2006-10-17 12:06 ·  中国 香港 环球全域电讯
初级用户
★★
Credits 121
Posts 61
Joined 2006-04-18 00:09
20-year member
UID 54007
Gender Male
From HK
Status Offline
Mount the ANSI driver (such as ansi.sys), prompt $e[ (ASCII code 27)
Forum Jump: