|
ljb603
初级用户
 
积分 112
发帖 49
注册 2006-10-19
状态 离线
|
『楼 主』:
如何在DOS下设置颜色?
使用 LLM 解释/回答一下
在DOS下想设置前景色和背景色,怎样做才可以呢?
In DOS, how can I set the foreground color and background color?
|
|
2006-10-22 05:15 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
COLOR /? 可以看到帮助信息~:)
C:\>color /?
设置默认的控制台前景和背景颜色。
COLOR
attr 指定控制台输出的颜色属性
颜色属性由两个十六进制数字指定 -- 第一个为背景,第二个则为
前景。每个数字可以为以下任何值之一:
0 = 黑色 8 = 灰色
1 = 蓝色 9 = 淡蓝色
2 = 绿色 A = 淡绿色
3 = 浅绿色 B = 淡浅绿色
4 = 红色 C = 淡红色
5 = 紫色 D = 淡紫色
6 = 黄色 E = 淡黄色
7 = 白色 F = 亮白色
如果没有给定任何参数,该命令会将颜色还原到 CMD.EXE 启动时
的颜色。这个值来自当前控制台窗口、/T 命令行开关或
DefaultColor 注册表值。
如果用相同的前景和背景颜色来执行 COLOR 命令,COLOR 命令
会将 ERRORLEVEL 设置为 1。
例如: "COLOR fc" 在亮白色上产生亮红色
COLOR /? can see the help information ~ : )
C:\>color /?
Sets the default console foreground and background colors.
COLOR
attr Specifies the color attributes of console output
The color attribute is specified by two hexadecimal digits -- the first
is the background, the second is the foreground. Each digit can be one
of the following values:
0 = black 8 = gray
1 = blue 9 = light blue
2 = green A = light green
3 = light green B = light aqua
4 = red C = light red
5 = purple D = light purple
6 = yellow E = light yellow
7 = white F = bright white
If no parameters are given, the command resets the color to what it was
when CMD.EXE started. This value is either from the current console
window, the /T command line switch, or the DefaultColor registry value.
If COLOR is invoked with the same foreground and background colors, the
ERRORLEVEL is set to 1.
For example: "COLOR fc" produces bright red on bright white
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-10-22 05:22 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
上面非纯DOS的颜色设置应用,
如果使用纯DOS还要求使用色彩丰富的显示,并且还希望“画图”等特殊显示……
请在论坛功能 ”搜索“ 中查找 ANSI 这个检索词,有更详细的教程与应用:)
The color settings applications that are not purely DOS above,
If you still require a richly colored display when using pure DOS and also hope for special displays like "Paint"...
Please search for the keyword "ANSI" in the forum function "Search", there are more detailed tutorials and applications : )
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-10-22 05:31 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2006-10-22 05:36 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
我最反对的倒不是教Windows下的东西,而是不看清楚楼主问题就回答的
What I oppose most is not teaching things under Windows, but answering without clearly seeing the owner's question
|

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'>" |
|
2006-10-22 05:42 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
DOSforever 和 electronixtar 的批评和提醒的对~:)
我向刚才的没看清提问和不恰当的回复答表示道歉,
并今后一定严格注意和遵守~:)
The criticisms and reminders from DOSforever and electronixtar are correct~:)
I apologize for the previous failure to see the question clearly and the inappropriate response,
and I will definitely pay strict attention to and abide by it in the future~:)
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-10-22 06:10 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
太残忍了吧 =_=
提醒一下就够了嘛
Too cruel, right =_=
Just a reminder is enough
|
|
2006-10-22 06:51 |
|
|
winzhzhq2006
新手上路

积分 8
发帖 4
注册 2006-10-22
状态 离线
|
|
2006-10-22 10:20 |
|
|
yangjiang
初级用户
 
积分 92
发帖 49
注册 2006-10-22
状态 离线
|
|
2006-10-22 12:42 |
|
|
ljb603
初级用户
 
积分 112
发帖 49
注册 2006-10-19
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
现在知道要加载 ANSI.SYS 文件才能在DOS下想设置前景色和背景色,谁能提供 ANSI.SYS 这个文件下载?
Now I know that to set the foreground color and background color under DOS, you need to load the ANSI.SYS file. Who can provide a download for the ANSI.SYS file?
|
|
2006-10-29 04:37 |
|