From c2f48772e9ed772b376f39038c51bc22552a24f0 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 17 Jun 2019 23:31:16 +0200 Subject: [PATCH] Correctly emit \r\n when a \n is written to the console, instead of \n\n... Fixes: #198 --- plat/cpm/libsys/write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/cpm/libsys/write.c b/plat/cpm/libsys/write.c index eb2c89a0a..c741dc644 100644 --- a/plat/cpm/libsys/write.c +++ b/plat/cpm/libsys/write.c @@ -12,9 +12,9 @@ void _sys_write_tty(char c) { - cpm_conout(c); if (c == '\n') - cpm_conout(c); + cpm_conout('\r'); + cpm_conout(c); } ssize_t write(int fd, void* buffer, size_t count)