[syslinux:elflink] CLI: don't highlight the prompt

syslinux-bot for H. Peter Anvin hpa at zytor.com
Fri May 18 16:33:02 PDT 2012


Commit-ID:  f631d78263f17436bda5ae27d7e4eff75981e31f
Gitweb:     http://www.syslinux.org/commit/f631d78263f17436bda5ae27d7e4eff75981e31f
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Fri, 18 May 2012 16:29:42 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Fri, 18 May 2012 16:30:23 -0700

CLI: don't highlight the prompt

Don't gratuitously highlight the prompt; it is just annoying.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>

---
 com32/elflink/ldlinux/cli.c     |    2 +-
 com32/elflink/ldlinux/ldlinux.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index 211a796..a1cf50c 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 3950a78..4ad5eb8 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 */


More information about the Syslinux-commits mailing list