diff options
| author | Michael Brown | 2006-12-18 02:31:33 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-18 02:31:33 +0100 |
| commit | 530bbf7cca1866f545797dda91b0437b236836f1 (patch) | |
| tree | f4374c3b9e2deb353e1655e7b02f78e5ec986459 /src/commandline | |
| parent | Add basic ANSI escape sequence support to BIOS console (diff) | |
| download | ipxe-530bbf7cca1866f545797dda91b0437b236836f1.tar.gz ipxe-530bbf7cca1866f545797dda91b0437b236836f1.tar.xz ipxe-530bbf7cca1866f545797dda91b0437b236836f1.zip | |
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.
Diffstat (limited to 'src/commandline')
| -rw-r--r-- | src/commandline/cmdline.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <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; |
