Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 1996 13:49:48 +0000 (GMT)
From:      Gabor Zahemszky <zgabor@CoDe.hu>
To:        freebsd-questions@freebsd.org
Subject:   cursor keys under Unix-shells
Message-ID:  <199602261349.NAA00994@CoDe.CoDe.hu>

next in thread | raw e-mail | index | archive | help
Hi!

Somebody asked about cursor keys under Unix.  Somebody answerd,
use tcsh or bash.  You don't need it.  Both sh (ash, preciselly)
and pdksh can use the cursor keys, the trick is: set -o emacs,
and don't modify the EDITOR/VISUAL variables (or after modification,
set -o emacs, too).  If you have to work with the original, AT&T ksh,
you have to make  some other tricks (you have to define some aliases)
(mail me, if you need it, for AIX, HP, etc - or read the KSH-book)
This works only on vt100-like terminal, as I know,.  Sorry, the ash
manual is very cheap about command-line editing, but the pdksh manual is
very-very good.  Ther are so many examples about the cursor-key
bindings in it.

Bye, Gabor


-- 
	Gabor Zahemszky <zgabor@CoDe.hu>

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
Earth is the cradle of human sense, but you can't stay in the cradle forever.
						Tsiolkovsky



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602261349.NAA00994>