From: Vladimir 'phcoder' Serbinenko Date: Thu, 24 Dec 2009 22:19:54 +0000 (+0100) Subject: Don't output unnecessary newline in command line prompt X-Git-Tag: 1.98~202^2~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=686ff5b4d17d22198b6150479878560ddb53a3f2;p=thirdparty%2Fgrub.git Don't output unnecessary newline in command line prompt --- diff --git a/normal/cmdline.c b/normal/cmdline.c index c71ac47ce..d7f41c7e3 100644 --- a/normal/cmdline.c +++ b/normal/cmdline.c @@ -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); {