I use "nano" to edit my files on remote servers. I'm on MAC OSX.

When I type characters to nano from time to time it just doesn't enter characters as I type them. The behavior is very strange and hard to describe.

It looks like it overwrites characters and even deletes them instead of inserting new chars. And when I finally save the file and reopen it doesn't show content that I typed before saving.

Seems that it does something that is invisible in editor.

link|improve this question

20% accept rate
For the first part, are you sure you didn't press the insert button equivalent? – AndrejaKo Oct 7 '11 at 17:53
Are you using screen or another terminal emulator and are pressing one of its shortcuts e.g. for selecting from the screen buffer? – Daniel Beck Oct 7 '11 at 17:54
I tried it with just pressing e.g the "d" key only. I do not use any emulator. I use standard MAC OSX terminal window – chubbyk Oct 7 '11 at 18:10
feedback

1 Answer

Try

 TERM=xterm nano filename

in case the value of TERM on the server is incorrect.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.