Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 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 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/