![]() |
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 14:57 |
47,813 topics / 349,903 posts / today 1 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » Adding colors to characters under MS-DOS 6.22 |
| Printable Version 2,251 / 5 |
| Floor1 oujarck | Posted 2009-05-14 06:51 |
| 新手上路 Posts 6 Credits 13 | |
|
In MS-DOS 6.22, to add colors to characters, you can use the `COLOR` command. The command format is `COLOR [attr]`, where `attr` is a combination of a background color and a foreground color. For example, to make the characters red on a black background, you can use `COLOR 40` (where 4 is the foreground color code for red and 0 is the background color code for black). To make the characters green on a black background, you can use `COLOR 20` (where 2 is the foreground color code for green and 0 is the background color code for black).
|
|
| Floor2 DXSX | Posted 2009-05-14 23:08 |
| 中级用户 Posts 147 Credits 247 | |
|
Load ansi.sys
For specific details, please search online by yourself. |
|
| Floor3 Hawk911 | Posted 2009-05-17 12:26 |
| 初级用户 Posts 67 Credits 116 | |
|
Loading ANSI.SYS can change the character color, but is that temporary? As long as you do a CLS, it returns to the original color!
|
|
| Floor4 oujarck | Posted 2009-05-18 22:17 |
| 新手上路 Posts 6 Credits 13 | |
|
I didn't set up CONFIG.SYS. I just wanted to control the font color in the batch processing, and I figured it out yesterday. Thanks to everyone. I used the ECHO command.
|
|
| Floor5 DengKen | Posted 2010-12-05 12:13 |
| 新手上路 Posts 4 Credits 6 | |
|
Can you share the code on the 4th floor? Thanks!
|
|
| Floor6 DOSforever | Posted 2010-12-12 14:18 |
| 金牌会员 Posts 2,239 Credits 4,639 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |