The Boot.ini (hidden file) in the C-packing directory can be used to control the boot menu to display color using the ANSI control code. You can design a colorful 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.
The Boot.ini (hidden file) in the C-packing directory can use the ANSI control code to control the boot menu to display color, such as the following boot.ini:
CODE:--------------------------------------------------------------------------------
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).