From 701f1df9618e9af81e2b04ae4a109e83c3c9ef8d Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 16 Mar 2010 22:34:13 +0100 Subject: [PATCH] Fix junk newline on second console --- normal/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/normal/main.c b/normal/main.c index ab28609cd..52d9b36fe 100644 --- a/normal/main.c +++ b/normal/main.c @@ -430,7 +430,8 @@ grub_normal_init_page (struct grub_term_output *term) grub_term_gotoxy (term, posx, 1); grub_print_ucs4 (unicode_msg, last_position, 0, 0, term); - grub_printf("\n\n"); + grub_putcode ('\n', term); + grub_putcode ('\n', term); grub_free (unicode_msg); } @@ -550,9 +551,10 @@ grub_normal_reader_init (int nested) { grub_normal_init_page (term); grub_term_setcursor (term, 1); - + grub_print_message_indented (msg_formatted, 3, STANDARD_MARGIN, term); - grub_puts ("\n"); + grub_putcode ('\n', term); + grub_putcode ('\n', term); } grub_free (msg_formatted);