Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 15 Mar 2002 13:46:22 +0100
To: Scott Goldstein <sdgoldst@yahoo.com>
Cc: cygwin@cygwin.com
Subject: Re: Bash - bind Alt-Arrow keys
Message-ID: <20020315124622.GA1806@tuxedo.skovlyporten.dk>
References: <20020314220204.23910.qmail@web13006.mail.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020314220204.23910.qmail@web13006.mail.yahoo.com>
User-Agent: Mutt/1.3.27i
From: lars@segv.dk (Lars Munch)

On Thu, Mar 14, 2002 at 02:02:04PM -0800, Scott Goldstein wrote:
> I want to bind \M-right and \M-left to forward-word
> and backward-word respectively in bash.
> 
> I've tried the following in my .inputrc file:
> 
> # forward word
> bind '"\M-\e[C":forward-word'
> 
> # backward word
> bind '"\M-\e[D":backward-word'
> 
> It seems to work, but have some strange side affects. 
> Specifically, the 'b' key no longer works.  
> 
> Any ideas?

I have never been able to make this work, so I ended up doing:

"^[[5~": backward-word 
"^[[6~": forward-word  

That is, binding "page up" and "page down" keys to this. As a result I'm
constantly pressing "page up" and "page down" in emacs, when I'm not
supposed to :-(.

I also bind'ed:

"^[[4~": end-of-line

My "end" key, but this do not work in rxvt on cygwin, but fine in rxvt
on Linux. It just produces a '~'?? I have set the TERM=rxvt.

Regards
Lars Munch


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

