Output \n\r like it was done previously because ncurses is confused by \r\n

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-12-27 22:35:40 +01:00
parent f45e1a9fb7
commit dc71441293

View file

@ -45,9 +45,9 @@ grub_putcode (grub_uint32_t code, struct grub_term_output *term)
return; return;
} }
(term->putchar) (code);
if (code == '\n') if (code == '\n')
(term->putchar) ('\r'); (term->putchar) ('\r');
(term->putchar) (code);
} }
/* Put a character. C is one byte of a UTF-8 stream. /* Put a character. C is one byte of a UTF-8 stream.