[Top][All Lists]

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

Re: Cannot bind ctrl-u to a readline function in bash.

From: Chet Ramey
Subject: Re: Cannot bind ctrl-u to a readline function in bash.
Date: Sun, 20 Apr 2008 19:04:40 -0400
User-agent: Thunderbird (Macintosh/20080213)

Bob Proulx wrote:

Normally control-u is bound to tty driver kill.  Because of there is a
tty driver value for ^U that value always overrides any readline
binding.  But if ^U is remove from the tty driver setting then it

There isn't a portable way to unset these values in the tty driver but
with GNU stty setting a value to "undef" will undefine it.

  stty kill undef

Having done this configuration to free up C-u it can then be bound
normally to whatever function is desired.

Note that undefining a tty editing character with stty makes it unavailable
to all programs you run.  Programs that don't use readline to read input
will not be able to perform the function the tty editing key is intended
to provide.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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