Subject: Re: Command line editing in ksh
To: Tony Houghton <tonyh@tcp.co.uk>
From: jan van doorn <jdoorn@nc.com>
List: port-arm32
Date: 03/19/1998 22:43:54
Try this in your $ENV:

set -o emacs
alias -x __A=^P
alias -x __B=^N
alias -x __C=^F
alias -x __D=^B

(^P is CONTROL_P, not SHIFT_6 followed by SHIFT_P)

Emacs style editing has a lot more going for it than up-down,
left-right though....

Cheers,
JvD

On Thu, 19 Mar 1998, Tony Houghton wrote:

> In message <NjaE1Encm@desktop-nc187.client.nc.com>
>           Paul Wain <pwain@nc.com> wrote:
> 
> > Tony Houghton wrote on , 19 Mar 1998 15:17:24 GMT:
> >
> > > I heard that ksh and even Bourne sh can do bash-style command-line
> > > editing. How can I set this up, or would I be better off running
> > > bash anyway (on 1.3 release)?
> >
> > For vi style editing:
> >
> >      set -o vi
> >
> > For emacs style editing
> >
> >      set -o emacs
> 
> Well yes, but with bash (or at least the version I saw in my brief
> flirtation with ARMLinux [1]) all you have to do is press the cursor
> keys and you're editing the command line - very nice :-). So is it
> possible to get ksh to do that, either by binding keys in vi or emacs or
> by some other method?
> 
> [1] I couldn't get the keyboard working properly and there isn't nearly
> so much help available on its mailing list as "ours".
> 
> -- 
>   \_________________
>                     \  http://homepages.tcp.co.uk/~tonyh/
>    The Curling Pages \ The home of WinEd, Bombz and NewsFind for RISC OS
>