aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-05-18 16:29:42 -0700
committerH. Peter Anvin <hpa@zytor.com>2012-05-18 16:30:23 -0700
commitf631d78263f17436bda5ae27d7e4eff75981e31f (patch)
treed6da4006280ff7d3bc899f9d4250286d73badba6
parenta965da4a4fa04471c68d0cbdc91deba61362a160 (diff)
downloadsyslinux-f631d78263f17436bda5ae27d7e4eff75981e31f.tar.gz
syslinux-f631d78263f17436bda5ae27d7e4eff75981e31f.tar.xz
syslinux-f631d78263f17436bda5ae27d7e4eff75981e31f.zip
CLI: don't highlight the promptsyslinux-5.00-pre2
Don't gratuitously highlight the prompt; it is just annoying. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/elflink/ldlinux/cli.c2
-rw-r--r--com32/elflink/ldlinux/ldlinux.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index 211a796b..a1cf50cc 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -165,7 +165,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
eprintf("\033[?7l\033[?25l");
if (y)
eprintf("\033[%dA", y);
- eprintf("\033[1G\033[1;36m%s \033[0m", input);
+ eprintf("\033[1G%s ", input);
x = strlen(input);
y = 0;
diff --git a/com32/elflink/ldlinux/ldlinux.c b/com32/elflink/ldlinux/ldlinux.c
index 3950a78c..4ad5eb85 100644
--- a/com32/elflink/ldlinux/ldlinux.c
+++ b/com32/elflink/ldlinux/ldlinux.c
@@ -214,7 +214,7 @@ static void enter_cmdline(void)
/* Enter endless command line prompt, should support "exit" */
while (1) {
- cmdline = edit_cmdline("boot: ", 1, NULL, cat_help_file);
+ cmdline = edit_cmdline("boot:", 1, NULL, cat_help_file);
printf("\n");
/* return if user only press enter or we timed out */