How to toggle CR/LF in gnu screen?

前端 未结 4 1443
时光说笑
时光说笑 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条回答
  •  旧时难觅i
    2020-12-14 08:22

    In my case worked: 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.

提交回复
热议问题