dhylands / rshell

Remote Shell for MicroPython
MIT License
955 stars 137 forks source link

rshell doesn't like long lines #89

Open rhubarbdog opened 5 years ago

rhubarbdog commented 5 years ago

i have the following modest prompt /home/phil/projects/pyboard> when I try to type the following command cp /RED_PYB/flash/color.py /RED_PYB/flash/main.py The cursor doesn't start a newline but loops and overtypes my prompt leaving the following output (prompt underlined to reflect colour)

h/main.pyl/projects/pyboard> cp /RED_PYB/flash/color.py /RED_PYB/flas
         ------------------

if press up arrow on a previous long line it doesn't work well

dhylands commented 5 years ago

I think that this is an artifact of Cmd, which is what rshell uses for its core command line processor. I see this under linux, and even though it looks bad, if you just type the command and hit return it will work.

Similarly, hitting the UP arrow may not look good, but if you hit UP and RETURN it will execute the previous command.