]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Don't output unnecessary newline in command line prompt
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 24 Dec 2009 22:19:54 +0000 (23:19 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 24 Dec 2009 22:19:54 +0000 (23:19 +0100)
normal/cmdline.c

index c71ac47ce34c85f32777bb9bc056281604dac204..d7f41c7e32e8d7cb0f6955cf1dbc6d02aa619cff 100644 (file)
@@ -356,8 +356,13 @@ grub_cmdline_get (const char *prompt)
   lpos = llen = 0;
   buf[0] = '\0';
 
-  grub_putchar ('\n');
+  {
+    grub_term_output_t term;
 
+    FOR_ACTIVE_TERM_OUTPUTS(term)
+      if ((grub_term_getxy (term) >> 8) != 0)
+       grub_putcode ('\n', term);
+  }
   grub_printf ("%s", prompt_translated);
 
   {