中国DOS联盟论坛

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-15 16:12
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) » Question: Can character colors be changed under DOS????
Printable Version  939 / 5
Floor1 天蓝 Posted 2003-06-02 00:00
初级用户 Posts 3 Credits 109
Question: Can character colors be changed under DOS????
Floor2 如是大师 Posted 2003-06-02 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Of course you can..
Floor3 天蓝 Posted 2003-06-02 00:00
初级用户 Posts 3 Credits 109
Be more specific.
Floor4 如是大师 Posted 2003-06-02 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
It's already explained in the beginner section.
Please don't make random posts in the future.
Floor5 Lydong Posted 2003-06-02 00:00
元老会员 Posts 407 Credits 1,468 From 广州
If you just want to change the color of characters, you can use the batch enhancement program BTE. The usage is as follows:

Change colors: BTE P attrib color
For example: under DOS, with white text on a black background, the foreground attribute is 7 and the background attribute is 0. If you enter
BTE P 7 62
then everything white on the screen (not bright white) will become yellow. Use BTE M to restore it.

Change character color: BTE C start long attrib
This function is used to change the color and background color of some characters on the screen. start is the position code of the first character to be changed: start value = row X80 + column, where row is 0-24 and column is 0-79; long is how many characters in total to change the color of (0 is the maximum value); attrib is the attribute code. For example:
BTE C 80 10 26
will change the 10 characters starting after the first character on the second line to bright green text on a blue background.

Restore normal display mode: BTE M

The advantage of this program is that it does not occupy memory, and it's short and compact, only a little over 490 bytes.
Floor6 荆棘鸟 Posted 2003-06-03 00:00
高级用户 Posts 144 Credits 537 From 河南
That's pretty good, but I suggest you try 4dos. It can give different files different colors, so you can recognize them at a glance.
4dos can also reduce memory usage, has doskey built in, a powerful and convenient Tab key, and lots of other advantages too.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023