Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: HPUX (was Re: vi command line editing)
- X-seq: zsh-users 1426
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: HPUX (was Re: vi command line editing)
- Date: Wed, 25 Mar 1998 08:45:38 -0800
- In-reply-to: <199803251022.KAA30301@xxxxxxxxxxxxxxxx>
- References: <199803251022.KAA30301@xxxxxxxxxxxxxxxx>
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