bug-bash
[Top][All Lists]
Advanced

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

Re: readline: edit (mode:vi) means eol unreachable


From: Chet Ramey
Subject: Re: readline: edit (mode:vi) means eol unreachable
Date: Mon, 05 Feb 2007 08:38:28 -0500
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Hugh Sasse wrote:

>> provide the right entries that allow the key sequences output by the
>> arrow keys to be bound to the motion commands you want.  You can do
>> this yourself; the easiest way to find out the key sequence output by
>> an arrow key is to use `cat -v'.
> 
> Where should I look to see how the correct "out of the box" behaviour
> is defined?  If I'm to modify PuTTY's terminfo till it works correctly,
> I will need to know what the definition of "correct" is.   I know that
> bash allows subsequent key bindings, and that I can customise things
> afterwards.

I'm not sure I understand the question.  If the termcap/terminfo entries
contain the key sequences output by the arrow keys (in termcap, they're
the `ku', `kd', `kr', and `kl' capabilities), bash will bind them and use
them `out of the box'.  I guess the answer is to find the appropriate key
sequences and make sure they're assigned to the terminfo equivalents.

Chet


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




reply via email to

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