How to toggle CR/LF in gnu screen?

前端 未结 4 1439
时光说笑
时光说笑 2020-12-14 07:31

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

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-14 08:32

    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.

提交回复
热议问题