[wellylug] Take a hint

Simon . ahlee_youp at hotmail.com
Wed Sep 8 15:54:21 NZST 2004


>From: Grant McLean <grant at mclean.net.nz>
>Reply-To: wellylug at lists.wellylug.org.nz
>To: wellylug at lists.wellylug.org.nz
>Subject: Re: [wellylug] Take a hint
>Date: Wed, 08 Sep 2004 09:42:03 +1200

>On Wed, 2004-09-08 at 09:28, David Antliff wrote:
> > On Wed, 8 Sep 2004, Grant McLean wrote:
> > > You may also want to add these two lines as well:
> > >
> > >   "\e[5D": backward-word
> > >   "\e[5C": forward-word
> > >
> > > These allow the use of the Ctrl-Left-Arrow and Ctrl-Right-Arrow to
> > > move left and right a word at a time.
>
> > Unfortunately these didn't work for me - does nothing in an aterm, moves
> > one character in a linux console and prints ';5D;5D;5C;5C...' in an 
>xterm.
> > Pity, because that would be really useful.
>
>On my system, I found aterm sent different sequences to gnome-terminal.
>These settings work for me:
>
>"\eOc": forward-word
>"\eOd": backward-word
>
>If that doesn't work for you, just type Ctrl-V Ctrl-Arrow at a
>command prompt.  Bash will echo what it received using ^[ to indicate
>an escape ('\e' in .inputrc).


Hmm, if I put

"\e[D": backward-word
"\e[C": forward-word

in .inputrc in cygwin bash, then non-ctrl'ed left right arrows also move 
forward/backward-word too.

Any ideas? 'Ctrl-V Ctrl-Right' and 'Ctrl-V Right' return the same escape 
char. A Windows limitation?

Simon Antliff

_________________________________________________________________
Surf the net and talk on the phone with Xtra JetStream @  
http://xtra.co.nz/jetstream




More information about the wellylug mailing list