mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
print a carriage return as well as a newline, in grub_putchar instead of console_putchar.
This commit is contained in:
1 parent
563b471fc7
commit
a1fafbfb0e
3 files changed
+14
-17
No files matched your search
+4
-6
@@ -878,6 +878,9 @@ checkkey (void)
|
||||
void
|
||||
grub_putchar (int c)
|
||||
{
|
||||
if (c == '\n')
|
||||
grub_putchar ('\r');
|
||||
|
||||
#ifdef STAGE1_5
|
||||
|
||||
/* In Stage 1.5, only the normal console is supported. */
|
||||
@@ -890,12 +893,7 @@ grub_putchar (int c)
|
||||
|
||||
# ifdef SUPPORT_SERIAL
|
||||
if (terminal & TERMINAL_SERIAL)
|
||||
{
|
||||
if (c == '\n')
|
||||
serial_putchar ('\r');
|
||||
|
||||
serial_putchar (c);
|
||||
}
|
||||
serial_putchar (c);
|
||||
# endif /* SUPPORT_SERIAL */
|
||||
|
||||
#endif /* ! STAGE1_5 */
|
||||
|
||||
Reference in new issue
Block a user