I'm using screen to read the text from a serial console. The problem is the output seems to only have newline \n but not carriage return \r, so the display looks like this...
Line1
Line2
Line3
I wonder if there is any patch to fix this issue?
Try stty onlcr
.
The man page says it will translate newlines to carriage return / newline pairs on output, which seems to be what you need.