Subject: Re: home end keys do not work
To: None <shnek@tiscali.cz>
From: Greg A. Woods <woods@weird.com>
List: netbsd-users
Date: 07/12/2004 17:16:52
[ On Monday, July 12, 2004 at 20:09:01 (+0200), Lubos Vrbka wrote: ]
> Subject: Re: home end keys do not work
>
> > > set -o emacs
> >
> > You are setting your cmd-line edit keys to emacs, why not use emacs keys
> > to move around your command line? CTRL-A for jumping to the begining of
> > the line (HOME?) and CTRL-E for jumping to the end of the line (END?).
>
> well i used this to enable command line history "browsable" by up/down
> arrows. i don't use emacs itself so i didn't now these two emacs keys...
> thanks for information. i guess i should lear a bit of emacs ;)
> i'll use ctrl-a and ctrl-e now, but i recall someone reporting that even
> with set -o emacs home and end keys work properly... so it is now
> question of not understanding what's going on in my computer... it
> should work, i guess...
While learning how to use emacs for editing is always a good thing, ;-)
you might find these commands (or something very similar) to be useful
additions to your ~/.profile (or ~/.kshrc or whatever you point $ENV at)
bind '^XH'=beginning-of-line
bind '^XF'=end-of-line
These are logical extensions of the commands given as examples in the
manual page of how to set up the cursor keys on an ANSI compatible
terminal.
(Maybe they should be part of the default bindings too? :-)
--
Greg A. Woods
+1 416 218-0098 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com> Secrets of the Weird <woods@weird.com>