Browse Source

Slightly tidied up console messages.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
e852f8e504
2 changed files with 5 additions and 8 deletions
  1. 3
    6
      src/commandline/cmdline.c
  2. 2
    2
      src/commandline/cmdlinelib.c

+ 3
- 6
src/commandline/cmdline.c View File

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

+ 2
- 2
src/commandline/cmdlinelib.c View File

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

Loading…
Cancel
Save