runtime: only use CRLF on baremetal systems

We should only do this on baremetal systems, not on Linux, macOS, and
Windows. In fact, Windows will convert LF into CRLF in its putchar
function.
This commit is contained in:
Ayke van Laethem
2021-11-05 19:05:22 +01:00
committed by Ron Evans
parent 73ab44c178
commit 41bcad9c19
+3 -1
View File
@@ -273,7 +273,9 @@ func printspace() {
}
func printnl() {
putchar('\r')
if baremetal {
putchar('\r')
}
putchar('\n')
}