[syslinux:elflink] cli: don' t disable linewrap when redrawing the cmdline

syslinux-bot for Matt Fleming matt.fleming at intel.com
Mon Jun 17 03:27:08 PDT 2013

Commit-ID:  022cdd1d56512e8759e8374c10a7420201db93c0
Gitweb:     http://www.syslinux.org/commit/022cdd1d56512e8759e8374c10a7420201db93c0
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Fri, 14 Jun 2013 08:48:11 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Fri, 14 Jun 2013 08:52:53 +0100

cli: don't disable linewrap when redrawing the cmdline

It messes things up when we want to use printf(), for example when
printing labels after the user has hit the TAB key.

This fixes a bug where labels would be printed on a single line on the
screen (with some being displayed off screen) when they should have been
printed across multiple lines.

I can't think of a reason to disable linerap when redrawing the command
line - so let's not.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

 com32/elflink/ldlinux/cli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index b85357b..7c4f14c 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -168,7 +168,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
 	    prev_len = max(len, prev_len);
 	    /* Redraw the command line */
-	    printf("\033[?7l\033[?25l");
+	    printf("\033[?25l");
 	    printf("\033[1G%s ", input);
 	    x = strlen(input);

More information about the Syslinux-commits mailing list