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-25 21:39
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question: Can character colors be changed under DOS???? View 892 Replies 5
Original Poster Posted 2003-06-02 00:00 ·  中国 天津 宝坻区 联通
初级用户
Credits 109
Posts 3
Joined 2003-06-02 00:00
23-year member
UID 2862
Gender Male
Status Offline
Question: Can character colors be changed under DOS????
Floor 2 Posted 2003-06-02 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Of course you can..
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-06-02 00:00 ·  中国 天津 宝坻区 联通
初级用户
Credits 109
Posts 3
Joined 2003-06-02 00:00
23-year member
UID 2862
Gender Male
Status Offline
Be more specific.
Floor 4 Posted 2003-06-02 00:00 ·  中国 湖北 武汉 汉阳区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
It's already explained in the beginner section.
Please don't make random posts in the future.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 5 Posted 2003-06-02 00:00 ·  中国 广东 广州 增城区 电信
元老会员
★★★
Credits 1,468
Posts 407
Joined 2002-10-21 00:00
23-year member
UID 34
Gender Male
From 广州
Status Offline
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.
欢迎大家观临我的个人主页:

http://dosdiy.bluepc.com.cn/
http://dosdiy.ys168.com/


EMAIL: lydong@china.com.cn lydong@yeah.net
----------------------------------------------
Floor 6 Posted 2003-06-03 00:00 ·  中国 河南 焦作 教育网
高级用户
★★
Credits 537
Posts 144
Joined 2003-05-20 00:00
23-year member
UID 2259
Gender Male
From 河南
Status Offline
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.
生活如同一根燃烧的火柴,当你四处寻找以确定自己的位置时,它已经燃完了。

Q me @ 183454265
Forum Jump: