From: Michael Brown Date: Mon, 18 Dec 2006 01:31:33 +0000 (+0000) Subject: Print welcome banner in bold (which will come out as bright white text X-Git-Tag: v0.9.3~919 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=530bbf7cca1866f545797dda91b0437b236836f1;p=thirdparty%2Fipxe.git 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. --- diff --git a/src/commandline/cmdline.c b/src/commandline/cmdline.c index 6ae33bd37..29ad3a66a 100644 --- a/src/commandline/cmdline.c +++ b/src/commandline/cmdline.c @@ -3,6 +3,7 @@ #include "cmdline.h" #include "cmdlinelib.h" #include "cmdlist.h" +#include #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;