aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-03-17 12:39:20 +0100
committerErwan Velu <erwan.velu@free.fr>2009-03-17 12:39:20 +0100
commit362c69fc240fd69e61a36e0ef6861d42844e4b74 (patch)
treef390fd6b33f3c5f63aa001771c2496288e67c61d /com32
parent180fe28146981ce27a7f15b1639df32e684dd534 (diff)
downloadsyslinux.git-362c69fc240fd69e61a36e0ef6861d42844e4b74.tar.gz
syslinux.git-362c69fc240fd69e61a36e0ef6861d42844e4b74.tar.xz
syslinux.git-362c69fc240fd69e61a36e0ef6861d42844e4b74.zip
hdt: Adding vesa in available modes & help message
Impact: Fixes CLI behavior. show vesa is a valid command "help" command didn't reported vesa as possible mode "show vesa" command was also missing even if already implemented
Diffstat (limited to 'com32')
-rw-r--r--com32/hdt/hdt-cli.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 7c1dc79c..129efb51 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -98,7 +98,7 @@ static void set_mode(struct s_cli_mode *cli_mode, cli_mode_t mode,
case DMI_MODE:
detect_dmi(hardware);
if (!hardware->is_dmi_valid) {
- printf("No valid DMI table found, exiting.\n");
+ more_printf("No valid DMI table found, exiting.\n");
break;
}
cli_mode->mode = mode;
@@ -121,10 +121,11 @@ static void show_cli_help(struct s_cli_mode *cli_mode)
{
switch (cli_mode->mode) {
case HDT_MODE:
- printf
- ("Available commands are : %s %s %s %s %s %s %s %s %s %s\n",
+ more_printf("Available commands are :\n");
+ more_printf
+ ("%s %s %s %s %s %s %s %s %s %s %s\n",
CLI_CLEAR, CLI_EXIT, CLI_HELP, CLI_SHOW, CLI_PCI, CLI_DMI,
- CLI_PXE, CLI_KERNEL, CLI_CPU, CLI_SYSLINUX);
+ CLI_PXE, CLI_KERNEL, CLI_CPU, CLI_SYSLINUX, CLI_VESA);
break;
case SYSLINUX_MODE:
case KERNEL_MODE:
@@ -153,7 +154,7 @@ void start_cli_mode(struct s_hardware *hardware)
for (;;) {
memset(cli_line, 0, sizeof cli_line);
- printf("%s", cli_mode.prompt);
+ more_printf("%s", cli_mode.prompt);
fgets(cli_line, sizeof cli_line, stdin);
/* We use sizeof BLAH - 1 to remove the last \0 */
@@ -331,6 +332,9 @@ void main_show(char *item, struct s_hardware *hardware)
main_show_kernel(hardware);
return;
}
-
+ if (!strncmp(item, CLI_VESA, sizeof(CLI_VESA))) {
+ main_show_vesa(hardware);
+ return;
+ }
show_main_help(hardware);
}