From 530bbf7cca1866f545797dda91b0437b236836f1 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 18 Dec 2006 01:31:33 +0000 Subject: [PATCH] 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. --- src/commandline/cmdline.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commandline/cmdline.c b/src/commandline/cmdline.c index 6ae33bd3..29ad3a66 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;