![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-14 05:51 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » How to Change the DOS Background Color |
| Printable Version 2,112 / 11 |
| Floor1 lmq | Posted 2003-12-02 00:00 |
| 中级用户 Posts 86 Credits 420 | |
|
Moderator:
Hello, I'd like to ask how to change the DOS background color. Black background with white text all the time is too monotonous. Please help. Thanks |
|
| Floor2 spider | Posted 2003-12-02 00:00 |
| 初级用户 Posts 3 Credits 114 | |
|
I want to know too
|
|
| Floor3 电吉入侵 | Posted 2003-12-03 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
There is a line in config.sys: menucolor=7,0. Just change those two numbers.
|
|
| Floor4 kkqq123 | Posted 2003-12-05 00:00 |
| 初级用户 Posts 28 Credits 236 | |
|
Sets the default foreground and background colors of the console.
COLOR attr Specifies the color attribute of the console output Color attributes are specified by two hexadecimal digits -- the first is the background, and the second is the foreground. Each digit can be any one of the following values: 0 = black 8 = gray 1 = blue 9 = light blue 2 = green A = light green 3 = cyan B = light cyan 4 = red C = light red 5 = purple D = light purple 6 = yellow E = light yellow 7 = white F = bright white If no argument is given, this command restores the color to the one in effect when CMD.EXE was started. This value comes from the current console window, the /T switch, or the DefaultColor registry value. If the COLOR command is executed with the same foreground and background color, the COLOR command will set ERRORLEVEL to 1. For example: "COLOR fc" produces light red on bright white |
|
| Floor5 lws74 | Posted 2003-12-05 00:00 |
| 初级用户 Posts 19 Credits 163 | |
|
Where do I set this console command?
I'm a newbie, please give me some pointers! |
|
| Floor6 hunome | Posted 2003-12-06 00:00 |
| 银牌会员 Posts 721 Credits 2,265 | |
|
Dianji already explained it very clearly.
|
|
| Floor7 lmq | Posted 2003-12-06 00:00 |
| 中级用户 Posts 86 Credits 420 | |
|
Everyone:
What I mean is in pure DOS, a blue-background, white-text screen environment, not in CMD or in a menu item. |
|
| Floor8 bennew | Posted 2004-12-16 00:00 |
| 初级用户 Posts 23 Credits 175 | |
|
I want to know too, bump!
|
|
| Floor9 落叶 | Posted 2004-12-18 00:00 |
| 初级用户 Posts 6 Credits 65 | |
|
Too deep, I can't understand it. I need to work hard
|
|
| Floor10 awayne | Posted 2004-12-18 00:00 |
| 初级用户 Posts 2 Credits 107 | |
|
There is one way,
load ansi.sys in config.sys, then use ansi escape sequence in the prompt to change the foreground and background colors. For example, add this in autoexec.bat: prompt $E |
|
| Floor11 qingwashaoye | Posted 2005-03-24 00:00 |
| 中级用户 Posts 74 Credits 271 | |
|
Right, can this be done by modifying DOS system files?
|
|
| Floor12 邊城浪子 | Posted 2005-03-25 00:00 |
| 初级用户 Posts 12 Credits 134 | |
|
Look at the notes, use color attr 07
To change the color, use color 70 etc. (70 is the color code) |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |