From 279250d2c7f0c282479b54551d2762e5b909fc40 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 27 Aug 2005 21:25:33 +0000 Subject: [PATCH] Call cli_edit() to edit parameters --- second/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/second/main.c b/second/main.c index e5bf055..13389a1 100644 --- a/second/main.c +++ b/second/main.c @@ -24,6 +24,9 @@ #include "load.h" #include "console.h" #include "vga.h" +#ifdef USE_CLI +#include "cli.h" +#endif #ifdef ARCH_M68K @@ -164,7 +167,13 @@ int start(emile_l2_header_t* info) if (info->kernel_image_size == 0) error("Kernel is missing !!!!\n"); - printf("vmlinux %s\n", info->command_line); + printf("Parameters: %s", info->command_line); + if (console_keypressed(5 * 60)) + { + printf("\rParameters: "); + cli_edit(info->command_line, CL_SIZE); + } + putchar('\n'); #ifdef SCSI_SUPPORT info->kernel_image_offset = (unsigned long)info->kernel_image_offset + (unsigned long)info; #endif