Search code examples
serial-portuartterminal-emulator

Editors in terminal mode via serial interface: bad display


I have a Wandboard target, which I communicate with via its serial port. I can login and send commands with minicom, the terminal looks normal.

However, whenever I try to use a more advance editor inside the terminal (nano, vi, emacs), the rows are all messed up. For example in emacs, the content is ok just after starting, but if I start moving the cursor around the line number shows up at the wrong place. If I try to open file, the prompt shows up in the middle of the buffer.

I suppose I have to change some settings for minicom, I just can't find which.


Solution

  • TERM=vt102 minicom
    

    fixed most of it, after telling minicom to also use vt102 and changing the behavior of Backspace.

    Strangely enough, minicom --term=vt102 did not.