Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
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

1 Answer 1

Try

 TERM=xterm nano filename

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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