bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] cannot assign function to Control-W


From: Chet Ramey
Subject: Re: [Bug-readline] cannot assign function to Control-W
Date: Sun, 14 Jun 2009 23:18:18 -0400
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Ulli Horlacher wrote:
> This is GNU readline 5.2 on Ubuntu 8.04.2.
> 
> Problem: I cannot assign a new function to Control-W in INPUTRC.
> 
> With other Control-keys I have no problem.
> 
> Example (contents of INPUTRC):
> 
> Control-w: dump-functions
> Control-o: dump-functions
> 
> Control-O then has the function dump-functions, but 
> Control-W still has the default-function unix-word-rubout!
> 
> Even more irritating:
> 
> When I type Control-X Control-R (function re-read-init-file), then
> Control-W has the new function dump-functions!
> 
> When I assign a string in INPUTRC:
> 
> Control-w: "TEST!"
> 
> then this works. Only binding a function to Control-W fails - at last at
> normal startup.

The last time this came up, I wrote:

Beginning with bash-3.0, after a number of requests for the feature,
readline began "honoring" the terminal special characters by binding
them to their readline equivalents at startup.

In bash-3.1, this was made dependent on the value of the readline variable
`bind-tty-special-chars', which is on by default.

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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