Ksh cursor keys (Was: who uses which shells)

Doug Gwyn gwyn at brl-smoke.ARPA
Sun May 29 04:58:26 AEST 1988


In article <1887 at mhres.mh.nl> jv at mhres.mh.nl (Johan Vromans) writes:
>But WHY does ksh not allow cursor (=arrow) keys to be used?

Different terminal transmit different sequences when an arrow key is
pressed.  Assuming that ksh allows user-specified editing key bindings,
as the BRL Bourne shell does, you CAN use arrow keys.

#	.shbind -- source to bind history/editing keypad keys
# following to support ANSI terminal keypads (e.g. VT100):

bind prefix-2 '^[O'
bind prefix-2 '^[['

bind up-history '^XA'
bind down-history '^XB'
bind forward-char '^XC'
bind backward-char '^XD'
bind beginning-of-line '^XH'



More information about the Comp.unix.wizards mailing list