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-09-15 08:08
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » How to set colors under DOS? View 2,512 Replies 7
Original Poster Posted 2006-09-15 11:42 ·  中国 湖南 长沙 电信
初级用户
Credits 84
Posts 30
Joined 2006-09-12 07:03
20-year member
UID 62391
Gender Male
Status Offline
Recently I saw a few codes and learned that color 2f sets the background to green, color 0c sets the font to red. How to set other colors? Thanks in advance to all the masters for teaching!
Floor 2 Posted 2006-09-15 21:21 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
21-year member
UID 42173
Gender Male
Status Offline
color /?

Can only display 16 colors, right

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-09-17 12:27 ·  中国 湖南 长沙 电信
初级用户
Credits 84
Posts 30
Joined 2006-09-12 07:03
20-year member
UID 62391
Gender Male
Status Offline
Tried it out, and sure enough. Thanks, electronixtar
Floor 4 Posted 2006-12-12 03:30 ·  中国 广东 珠海 联通
新手上路
Credits 8
Posts 3
Joined 2006-12-12 01:29
19-year member
UID 73235
Gender Male
Status Offline
Is there any software for full - screen testing the screen under DOS?
Floor 5 Posted 2007-02-05 04:17 ·  中国 福建 福州 电信
新手上路
Credits 8
Posts 3
Joined 2007-02-01 13:19
19-year member
UID 78324
Gender Male
Status Offline
Format: color ab
Description: a is the background color, b is the font color. Both a and b are values from 0 to f, using hexadecimal, and each digit represents a color.
Floor 6 Posted 2007-02-05 04:18 ·  中国 福建 福州 电信
新手上路
Credits 8
Posts 3
Joined 2007-02-01 13:19
19-year member
UID 78324
Gender Male
Status Offline
Note that the values of a and b cannot be the same, that is, the background and font color cannot be the same.
Floor 7 Posted 2007-02-16 06:35 ·  中国 四川 成都 电信
新手上路
Credits 14
Posts 7
Joined 2007-02-16 05:04
19-year member
UID 79612
Gender Male
Status Offline
In the application, you can program with VBE to get rich colors.
Floor 8 Posted 2007-02-17 02:27 ·  中国 浙江 台州 温岭市 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
Bump
Forum Jump: