How to toggle CR/LF in gnu screen?

前端 未结 4 1412
时光说笑
时光说笑 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:11

    If you use the miniterm.py program that comes with pyserial it will interpret newlines as crlf. It is not the most fully-featured terminal emulator but for interacting with simple serial devices it gets the job done.

    Usage syntax (on OSX):

    miniterm.py /dev/tty.usbserial-XXXXXX 115200
    

    Replace XXXXXX with whatever the device comes up on your system as.

提交回复
热议问题