How to make HOME or END keys work in mc running on OS X (ssh)
        Posted  
        
            by Sorin Sbarnea
        on Super User
        
        See other posts from Super User
        
            or by Sorin Sbarnea
        
        
        
        Published on 2009-07-22T11:13:09Z
        Indexed on 
            2010/03/09
            6:51 UTC
        
        
        Read the original article
        Hit count: 550
        
I installed MacPorts on OS X 10.5 and I found out that when I connect to the computer using SSH and use mc - Midnight Commander - the HOME and END keys do not work.
I have to mention that I'm using putty and I am able to use the keyboard very well on Linux machines like Fedora, Ubuntu,...
Here is putty keyboard configuration (a configuration I found to be optimal over time):
- Backspace key: 127
 - Home/End keys: Standard
 - Function keys: Xterm R6
 - Cursor keys: Normal
 - Numpad: normal
 - Terminal type string: xterm-color
 
I'm looking for a command line solution/script that does these changes, this make much easier to create a prepare OS script for configuring a new OS.
© Super User or respective owner