Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: HPUX (was Re: vi command line editing)



On Mar 25, 10:22am, Andrew Main wrote:
} Subject: Re: HPUX (was Re: vi command line editing)
}
} Shawn Leas wrote:
} >bindkey -s "^[OA" "^[ka"
} >bindkey -s "^[OB" "^[ja"
} >bindkey -s "^[OD" "^[ha"
} >bindkey -s "^[OC" "^[la"
} 
} That's a terminal issue.  Some terminals send "^[OA" instead of "^[[A".

Actually, it's a keypad transmit mode issue, I think.  vt100s and their
emulators in keypad mode send the '\eO' sequences, and in standard mode
send the '\e[' sequences.  You can often see this by typing ctrl-V up
in the shell, then starting vi and typing ctrl-V up in insert mode.

Some versions of the vt100 and xterm termcap/terminfo entries always put
the terminal in keypad mode, others switch into it in the ti/te ("Begin
program that uses cursor motion") capabilities, still others never leave
standard mode.  It's really annoying, especially on e.g. Linux where the
Num Lock key controls whether the -keyboard- really is in keypad mode.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author