delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/14/17:02:55

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
Message-ID: <20020314220204.23910.qmail@web13006.mail.yahoo.com>
Date: Thu, 14 Mar 2002 14:02:04 -0800 (PST)
From: Scott Goldstein <sdgoldst AT yahoo DOT com>
Subject: Bash - bind Alt-Arrow keys
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

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?

Thanks.

Scott

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
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