How to design a color Windows startup menu

Source: Internet
Author: User
Tags ini set background

The Computer boot menu option is generally white, but we can modify the Boot.ini (hidden file) in the C-packing directory to control the boot menu to display color by using the ANSI control code. Let's talk now. Design a color Windows startup menu for yourself based on the following short code. This also helps you to understand the ANSI control code and its escape, and of course the color menu is also very personalized.

For example, the following boot.ini:

Timeout=30

Default=multi (0) disk (0) rdisk (0) partition (3) WINDOWS

[Operating Systems]

multi (0) disk (0) rdisk (0) partition (2) windows= "[1;32mmicrosoft [1;34mwindows] [1;33MXP

Professional "/noexecute=optin/fastdetect

C:avldrxp.bin= "[1;36mavlgo-peldr"/noguiboot

multi (0) disk (0) rdisk (0) partition (3) windows= "[1;31mmicrosoft [1;33mwindmows [1;35msermver 2003]/noexecute=optout/ Fastdetect

C:1.bin= "[1;37mms-dos"

--------------------------------------------------------------------------------

ANSI Control code:

The arrow + "[" declares the beginning of the escape sequence

The following "1" defines the default font width. For text properties, these values are meaningful: 0, 1, 22, 4, 24, 5, 25, 7, 27, respectively: Default value, bold, not bold, underline, not underline, flashing, non-flashing, reverse-explicit, not reversed.

30m--37m Set Foreground color

40m--47m Set Background color

Optional colors: Red, green, yellow, blue, magenta, cyan, and white.

Their corresponding color codes are:

30 (Black), 31 (red), 32 (green), 33 (yellow), 34 (blue), 35 (magenta), 36 (cyan), 37 (white).

Set the background color with the same color method, but replace the first number "3" with "4".

40 (Black), 41 (red), 42 (green), 43 (yellow), 44 (blue), 45 (magenta), 46 (cyan), 47 (white).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.