]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Output \n\r like it was done previously because ncurses is confused by \r\n
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 27 Dec 2009 21:35:40 +0000 (22:35 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 27 Dec 2009 21:35:40 +0000 (22:35 +0100)
kern/term.c

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