summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/console')
-rw-r--r--src/console/console.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/console/console.c b/src/console/console.c
index ff4b3e47b2..592fd21442 100644
--- a/src/console/console.c
+++ b/src/console/console.c
@@ -43,6 +43,14 @@ void console_tx_byte(unsigned char byte)
__spkmodem_tx_byte(byte);
__qemu_debugcon_tx_byte(byte);
+ /* Some consoles want newline conversion
+ * to keep terminals happy.
+ */
+ if (byte == '\n') {
+ __uart_tx_byte('\r');
+ __usb_tx_byte('\r');
+ }
+
__uart_tx_byte(byte);
__ne2k_tx_byte(byte);
__usb_tx_byte(byte);