summaryrefslogtreecommitdiff
path: root/com32/elflink/ldlinux/cli.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-06-14 08:48:11 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-06-14 08:52:53 +0100
commit022cdd1d56512e8759e8374c10a7420201db93c0 (patch)
treecb4e56e69727c1a6c9d1cf4c1f97d250ac57ee82 /com32/elflink/ldlinux/cli.c
parente396f093c0c9130c4112d5395142a66c50aab551 (diff)
downloadsyslinux-022cdd1d56512e8759e8374c10a7420201db93c0.tar.gz
cli: don't disable linewrap when redrawing the cmdlinesyslinux-5.11-pre2
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@intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/cli.c')
-rw-r--r--com32/elflink/ldlinux/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index b85357b2..7c4f14c6 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);