delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/25/10:58:39

X-Spam-Check-By: sourceware.org
From: ericblake AT comcast DOT net (Eric Blake)
To: Keith Christian <keithchristian AT yahoo DOT com>,
cygwin mailing-list <cygwin AT cygwin DOT com>
Subject: Re: Losing key bindings in Bash 3.00.16(14)-release
Date: Wed, 25 Jan 2006 15:58:28 +0000
Message-Id: <012520061558.21737.43D7A024000CEF31000054E922007601800A050E040D0C079D0A@comcast.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> Hi Folks,
> 
> Versions:  Windows XP SP2, RXVT 2.7.10, Bash 3.00.16(14)-release, Cygwin 
> DLL 1.5.18.

You might want to consider upgrading.

> 
> Since Bash 3.x became the default version installed with Cygwin, on my 
> system, Bash inexplicably loses the command line edit bindings.  This 
> usually happens when a window has been open for a day or more and I've 
> done alot of work in it.

Odd; I've never seen this.  You may want to try the experimental
bash 3.1 to see if the problem has been addressed by upstream
fixes (bash 3.1/readline 5.1 added new features that make
bindings track terminal settings better, but ^A and ^E aren't
usually set to terminal control characters).  If you could come
up with something a little more definitive to reproducing this,
it would be a great help in the debugging effort.

> 
> The problem shows itself when I press Ctrl-A or Ctrl-E or other command 
> line editing keys, and instead of going to the start or the end of the 
> line, I see "^A" or "^E" in the command line at the cursor position.
> 
> (I have Bash 3.00.14(1)-release on a Fedora Linux system and haven't 
> noticed this behavior.)
> 
> I haven't discovered how to restore editing bindings to the BASH command 
> line other than closing the RXVT window and re-opening it.

The readline command re-read-init-file (by default, bound to
the sequence Ctrl-x Ctrl-r) will restore the bindings in your
~/.inputrc without having to close and reopen your terminal.

--
Eric Blake
volunteer cygwin bash/readline maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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