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 thi
Try stty onlcr.
stty onlcr
The man page says it will translate newlines to carriage return / newline pairs on output, which seems to be what you need.