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
In my case worked: stty -F /dev/ttyACM0 -icrnl
stty -F /dev/ttyACM0 -icrnl
Because the serial was implicitly set to translate CR to NL. This command set it back. Notice the minus character preceding icrnl.
icrnl