Don't output unnecessary newline in command line prompt

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-12-24 23:19:54 +01:00
parent 4b4513adb3
commit 686ff5b4d1

View 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);
{