david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Print welcome banner in bold (which will come out as bright white text

on the BIOS console, or genuine bold font on a xterm "serial" console),
just to prove the concept of the ANSI escape sequence handling.
This commit is contained in:
Michael Brown 2006-12-18 01:31:33 +00:00
parent 8b3a4c9862
commit 530bbf7cca
1 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#include "cmdline.h"
#include "cmdlinelib.h"
#include "cmdlist.h"
#include <gpxe/ansiesc.h>
#define CMDL_DELAY (2000 * TICKS_PER_SEC) / 1000;
@ -16,8 +17,10 @@ void cmdl_start()
//int spin;
//printf("gPXE %s (GPL) etherboot.org ... ", VERSION);
printf("gPXE %s (GPL) etherboot.org\n", VERSION);
printf("Press Ctrl-B for gPXE command line...");
printf ( CSI "1m" /* bold */
"gPXE " VERSION " (GPL) etherboot.org\n"
CSI "0m" /* normal */
"Press Ctrl-B for gPXE command line..." );
stop = currticks() + CMDL_DELAY;