ソースを参照

Slightly tidied up console messages.

tags/v0.9.3
Michael Brown 17年前
コミット
e852f8e504
2個のファイルの変更5行の追加8行の削除
  1. 3
    6
      src/commandline/cmdline.c
  2. 2
    2
      src/commandline/cmdlinelib.c

+ 3
- 6
src/commandline/cmdline.c ファイルの表示

@@ -17,6 +17,7 @@ void cmdl_start()
17 17
 
18 18
 	//printf("gPXE %s (GPL) etherboot.org ...  ", VERSION);
19 19
 	printf("gPXE %s (GPL) etherboot.org\n", VERSION);
20
+	printf("Press Ctrl-B for gPXE command line...");
20 21
 
21 22
 	stop = currticks() + CMDL_DELAY;
22 23
 	
@@ -29,12 +30,11 @@ void cmdl_start()
29 30
 		
30 31
 		if(iskey()){
31 32
 			if(getchar() == 2){
32
-				putchar('\n');
33
+				printf("\n\n");
33 34
 				cmdl_exec_cmdline();
34 35
 				break;
35 36
 			}else{
36
-				putchar('\n');
37
-				printf("Skipping command line.\n");
37
+				printf("skipping.\n");
38 38
 				break;
39 39
 			}
40 40
 		}
@@ -71,9 +71,6 @@ void cmdl_exec_cmdline(){
71 71
 
72 72
 	cmdl_setpropmt(cmd, "gPXE>");
73 73
 
74
-	printf("Welcome to Etherboot\n\n");
75
-
76
-
77 74
 	cmdl_enterloop(cmd);
78 75
 
79 76
 	cmdl_free(cmd);

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

@@ -548,11 +548,11 @@ cmd_line* cmdl_create()
548 548
 
549 549
 	struct command *cmd;
550 550
 
551
-	printf ( "Compiled in commands: ");
551
+	printf ( "Available commands: ");
552 552
 	for ( cmd = cmd_start ; cmd < cmd_end ; cmd++ ) {
553 553
 		printf("%s ", cmd->name);
554 554
 	}
555
-	printf("\n");
555
+	printf("exit\n\n");
556 556
 
557 557
 	return this;
558 558
 }

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