bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BACKSPACE does not work on bash3.0


From: Chet Ramey
Subject: Re: BACKSPACE does not work on bash3.0
Date: Wed, 08 Sep 2004 16:28:06 -0400
User-agent: Mozilla Thunderbird 0.7.1 (Macintosh/20040626)

Jeff Chua wrote:

On Mon, 23 Aug 2004, Chet Ramey wrote:

        > bash
        > <ESC>k$<BACKSPACE><CTRL>C     <== this works for 1st time only
> <ESC>k$<BACKSPACE><CTRL>C <== deletes instead of moving left


Bash auto-maps stty special characters to their readline equivalents.  I
will probably have to make this a settable option in a future release.


Chet, as a short-term fix before your next release, can you please tell me which files do I have to modify in order to make "backspace" move-back instead of deleting in "vi overstrike" mode? It's getting a bit annoying as I'm so used to using backspace to _back_space_.

You can look at rltty.c:_rl_bind_tty_special_chars() and modify it to
your heart's content.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU address@hidden http://tiswww.tis.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]