delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/15/07:47:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 15 Mar 2002 13:46:22 +0100
To: Scott Goldstein <sdgoldst AT yahoo DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: Bash - bind Alt-Arrow keys
Message-ID: <20020315124622.GA1806@tuxedo.skovlyporten.dk>
References: <20020314220204 DOT 23910 DOT qmail AT web13006 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20020314220204.23910.qmail@web13006.mail.yahoo.com>
User-Agent: Mutt/1.3.27i
From: lars AT segv DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019