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-07-15 20:55
中国DOS联盟论坛 » 其它操作系统综合讨论区 » [Recommendation] Colorful boot.ini Menu DigestI View 33,224 Replies 72
Original Poster Posted 2006-05-25 13:52 ·  中国 广东 佛山 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
The boot.ini menu can use ANSI control codes to display colors, for example the boot.ini below:


timeout=30
default=multi(0)disk(0)rdisk(0)partition(3)\WINDOWS

multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="



Screenshot of the effect when running it:

[ Last edited by fujianabc on 2006-5-25 at 18:42 ]
Attachments
boot.gif
Floor 2 Posted 2006-05-25 14:38 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Oh—! I didn't expect NTLDR to support ANSI escape sequences too
Floor 3 Posted 2006-05-25 16:15 ·  中国 安徽 宿州 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
I'll try it.
Floor 4 Posted 2006-05-25 16:34 ·  中国 山西 临汾 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re fujianabc:

An exciting discovery!

It has already been tested and confirmed that NTLDR not only supports ANSI color control escape sequences, but also other ANSI control sequences, including clear screen, cursor positioning, shifting, reset, keyboard redefinition, display mode settings, etc.

In other words, based on this we can design a completely new boot.ini menu. As long as we pay attention to some details, a fully customized interface can be achieved. Aside from the drawback that background images cannot be used, other menu styles similar to EasyBoot can also be designed.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 5 Posted 2006-05-25 16:37 ·  中国 湖南 常德 电信
银牌会员
★★★
Credits 1,384
Posts 709
Joined 2005-10-29 22:22
20-year member
UID 44271
Status Offline
The OP is awesome. Is it really possible? I'll give it a try...
Floor 6 Posted 2006-05-25 18:29 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Hehe, fun.
简单就是美
Floor 7 Posted 2006-05-25 18:31 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
It would be nice if the text prompts outside the menu could be colored too.
简单就是美
Floor 8 Posted 2006-05-25 19:38 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Now the forum is going to have another whole series of fun stuff!
Hope someone uses ntldr to make an MS-DOS 9, haha

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'>"
Floor 9 Posted 2006-05-25 20:31 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Success! Even after I deleted the Chinese font Bootfont.bin file, it still displayed a colorful menu. It really is NTLDR that can handle ANSI color control escape sequences.

I suggest making this thread featured.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 10 Posted 2006-05-25 22:39 ·  中国 山西 临汾 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re Michael:

“It would be nice if the text prompts outside the menu could be colored too.”

That's the detail I mentioned. Some prompt text below the menu items is displayed only after the menu items are shown. So if  is used in a menu item to clear the screen, that prompt text will still appear below this menu item, but if you move the cursor up or down at that point, the menu item information gets rewritten, the screen is cleared again, and the prompt text will no longer appear.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 11 Posted 2006-05-26 11:34 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
I tried it, and it really is pretty good. But I found that if a line uses ANSI-controlled color, when the cursor moves to that line the highlight bar disappears. Is there any way to solve that?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 12 Posted 2006-05-26 12:01 ·  中国 广东 佛山 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
Originally posted by Wengier at 2006-5-26 11:34 AM:
试了一下,确实不错。不过我发现如果某行采用了ANSI控制颜色的话,当光标移到这行时光标条会消失,不知有没有办法解决?

If you don't use highlight 
Floor 13 Posted 2006-05-26 18:50 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
If the prompt text is inside ntldr, it should be changeable, right? Not sure whether it's possible to manually add some ANSI escape sequences into it.
Probably impossible. Hehe.
简单就是美
Floor 14 Posted 2006-05-26 18:53 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Hehe, no wonder. Highlighted text conflicts with the highlight bar. But if you don't use highlight colors, it doesn't look as good.
简单就是美
Floor 15 Posted 2006-05-26 19:35 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Originally posted by Michael at 2006-5-25 18:31:
如果选单以外的文字提示也可以是彩色的就好了。

Eh—you're asking too much
1 2 3 5 Next ›
Forum Jump: