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: Wed, 07 Feb 2007 18:38:50 -0500
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Hugh Sasse wrote:

>> I'm not sure I understand the question.  If the termcap/terminfo entries
> 
> The question is about the vi edit mode for a correctly configured
> terminal, with no personalization.  Should the cursor keys take me
> out of insert mode, or leave me in insert mode (like vim), and
> should I be able to move to beyond the last character (after having
> moved left) so that I can append more text?

It depends on whether or not the termcap/terminfo capabilities are
specified.  Readline binds some common arrow key sequences by default
(xterm and vt100), but if your arrow keys output something else,
either they need to be in termcap/terminfo or you need to bind them
yourself in .inputrc.  If the key sequence isn't bound, it will be
treated as a series of keys probably beginning with ESC, which:

> All this could be complicated by the cursor keys emitting Escape, 
> which could interact horribly with vi mode!

Readline can work around this.

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]