Ksh cursor keys (Was: who uses which shells)
John Young
jgy at hropus.UUCP
Sun Jun 5 07:23:00 AEST 1988
For those of you discussing the use of arrow keys in ksh the
answer is you can use them. Sometimes.
One of my terminals is an HP2626x, these arrow keys send escape-D, C,
A, and B for left, right, up and down respectivley. Therefore in
ksh, if you use the emacs editing style (probably in vi to) you can
say the following:
$ alias _D=^b
$ alias _C=^f
$ alias _A=^p
$ alias _D=^n
Where ^ means the control key (with a \ in front).
People whose terminals don't send ESCAPE-X are in trouble, as are
those whose "X" characters happen to coincide with already used
emacs editing mode esacape sequences.
ksh documentaion calls these _ aliases soft-keys and they can be quite
usefull: Try this one:
$ alias _r='^] ^[ ^] ^X^X^W^Y^E^Y'
p.s.
If none of these work it's because you typed them incorrectly(or I did!)
or you are using a ksh version earler than 6/3/86.
John Young
AT&T-BL
Red Hill Rd.,
Middletown, NJ 07748
201-615-4412
More information about the Comp.unix.wizards
mailing list