How to toggle CR/LF in gnu screen?
问题 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? 回答1: 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. 回答2: onlcr is for translating o utgoing n ew l ines to c arriage r eturns. stty -F /dev/ttyS0 inlcr will