ソースを参照

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.
tags/v0.9.3
Michael Brown 17年前
コミット
530bbf7cca
1個のファイルの変更5行の追加2行の削除
  1. 5
    2
      src/commandline/cmdline.c

+ 5
- 2
src/commandline/cmdline.c ファイルの表示

3
 #include "cmdline.h"
3
 #include "cmdline.h"
4
 #include "cmdlinelib.h"
4
 #include "cmdlinelib.h"
5
 #include "cmdlist.h"
5
 #include "cmdlist.h"
6
+#include <gpxe/ansiesc.h>
6
 
7
 
7
 
8
 
8
 #define CMDL_DELAY (2000 * TICKS_PER_SEC) / 1000;
9
 #define CMDL_DELAY (2000 * TICKS_PER_SEC) / 1000;
16
 	//int spin;
17
 	//int spin;
17
 
18
 
18
 	//printf("gPXE %s (GPL) etherboot.org ...  ", VERSION);
19
 	//printf("gPXE %s (GPL) etherboot.org ...  ", VERSION);
19
-	printf("gPXE %s (GPL) etherboot.org\n", VERSION);
20
-	printf("Press Ctrl-B for gPXE command line...");
20
+	printf ( CSI "1m" /* bold */
21
+		 "gPXE " VERSION " (GPL) etherboot.org\n"
22
+		 CSI "0m" /* normal */
23
+		 "Press Ctrl-B for gPXE command line..." );
21
 
24
 
22
 	stop = currticks() + CMDL_DELAY;
25
 	stop = currticks() + CMDL_DELAY;
23
 	
26
 	

読み込み中…
キャンセル
保存