[Top][All Lists]

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

Re: Readline bind doesn't work for some keys (C-w, C-h)

From: Chet Ramey
Subject: Re: Readline bind doesn't work for some keys (C-w, C-h)
Date: Wed, 12 Jan 2005 14:20:19 -0500

> Machine Type: i386-pc-linux-gnu
> Bash Version: 3.0
> Patch Level: 16
> Release Status: release
> Description:
>       The bindings for keys C-w and C-h can't be changed or
>       removed by bind or inputrc.  Bindings for some other key
>       sequences still work properly.

Those are tty special chars.  As of bash-3.0/readline-5.0, bash tracks
the values of the tty special characters and binds them to their readline
equivalents on startup.  This feature was added as the result of multiple
requests dating back to bash version 1.

It's not in the NEWS file (sorry, my oversight), but is noted in CHANGES:

o.  The code that initializes the terminal tracks changes made to the terminal
    special characters with stty(1) (or equivalent), so that these changes
    are reflected in the readline bindings.  New application-callable function
    to make it work:  rl_tty_unset_default_bindings().

The next version of bash will make this a settable readline option.


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

reply via email to

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