Hi,
I asked about a way of providing my users with tool for command
line editing. I received a lot of replies. Thank you all!
Below is the list of all solutions, suggested to me. Parts of
different replies related to the same solution are sparated by a line
of hyphens.
1) Korn shell ksh:
--------------------------------------------------------------
In the Korn Shell, you have a choice between "vi" and "emacs"
keystroke commands.
--------------------------------------------------------------
If you use ksh, I've been able to use this on several platforms, have
not tryed on 2.2 but should work.
### UNDOCUMENTED WAY OF BINDING ARROWKEYS (for ksh)
######################
## documentaion on following entries, since control char's wont
printout
## A = ^V^P B = ^V^N C = ^V^F D = ^V^B
set -o emacs
alias __A=
alias __B=
alias __C=
alias __D=
--------------------------------------------------------------
you have many choices actually. the easiest way to do this, is to use
/bin/ksh which is a standard part of solaris 2.x. when you start it
up, you can say
set -o emacs
(or put this in your .profile file), and then emacs keys work (not the
arrow keys). so you get the following keys:
^P previous line
^N next line
^A goto start of line
^E goto end of line
2) Bourne again shell (bash)
--------------------------------------------------------------
go with a version post 1.14.6 'cause prior versions have
vulnerability problems as I've been told. [...] It can be
obtained in C source code from
ftp://sunsite.unc.edu/pub/Linux/distributions/slackware/source/a/bash.
--------------------------------------------------------------
Try bash (a sh derivitive, availible at
ftp://prep.ai.mit.edu/pub/gnu),
--------------------------------------------------------------
bash is sort of an amalgamation of shells, it has features from
sh, csh, and ksh, plus some features of its own. it is sh-
compatable (no csh syntax.)
3) tcsh (I wonder what 'tsch' stands for? WM)
--------------------------------------------------------------
Tcsh, which is freely available on the net, will do what you
want. I think its official home is tesla.ee.cornell.edu . However,
it is available at many of the standard freeware internet sites
such as sunsite.doc.ic.ac.uk . You might also try ftp.funet.fi .
--------------------------------------------------------------
I use tcsh here and it offers a LOT of advantages over the
standard C-shell; scrolling & editing the history list with
the cursor keys, automatic time outs, intelligent file
completion, etc.
--------------------------------------------------------------
The tcsh will do this, you can get it at the ftp site :
ee.cornell.edu/pub/tcsh
The source code is in a file tcsh-6.06.tar.gz.
--------------------------------------------------------------
http://smc.vnet.net/solaris_2.5_nof.html
--------------------------------------------------------------
ftp://ftp.cs.umn.edu/pub/shells/tcsh.
--------------------------------------------------------------
We use tcsh -- a public domain version of "enhanced" csh. Take a
look at ftp://grendel.gw.com/pub/unix/tcsh. Works great -- the
editing commands are very emacs-like...
--------------------------------------------------------------
tcsh is nearly identical to csh except that it supports arrow
keys.
--------------------------------------------------------------
Download the tcsh shell from:
http://smc.vnet.net/solaris_2.5.html
There's a ton of other stuff here also, compiled and in package
format.
--------------------------------------------------------------
The tcsh shell does what you want. You can get it from from
sunsite.doc.ic.ac.uk and probably many other places.
4) xterm:
Use a shell like tcsh or bash and in an xterm you will be able to
use the arrow keys to scroll thru the command history and edit using
the arrow keys. ( Additionally you will also get filename completion
with the tab key )
5) mced
Look on the Internet for a program called "mced". If you cannot find
a copy, I can probably make one available, but I do not have any
documentation. It only runs under C shell.
6) cmdtool
7) zsh
zsh (which is different than sh or csh, and combines some features,
but has other entirely novel features).
--------------------------------------------------------------
A discription of BASH and ZSH can be found at
http://geek-girl.com/unix.html. The ZSH and BASH sources can be found
at ftp.sterling.com and prep.ai.mit.edu respectively.
8)
Do have tried... $ set -o vi
this is just for edit the command line, but just use the left and
right arrows!!
Wojciech Mikanik
Silesia University of Technology
Institute of Computer Science
Akademicka 16
44-100 Gliwice, Poland
Phone: +48-32-37-27-05
Fax: + 48-32-37-27-33
http://sun_zo.iinf.polsl.gliwice.pl/pub/wmikanik/html/
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:17 CDT