bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] vi-{cmd, ins}-mode-string and show-mode-in-prompt


From: Chet Ramey
Subject: Re: [Bug-readline] vi-{cmd, ins}-mode-string and show-mode-in-prompt
Date: Thu, 7 Dec 2017 08:28:03 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 12/6/17 11:46 PM, Rob Foehl wrote:
> I've been toying with using vi-{cmd,ins}-mode-string for changing the
> cursor shape, like so:
> 
> $if term=xterm
>     set vi-cmd-mode-string "\1\e[2 q\2"
>     set vi-ins-mode-string "\1\e[6 q\2"
> $endif
> 
> These seem to have an implicit dependency on having show-mode-in-prompt
> enabled, and that causes an issue when using the same inputrc with older
> readline versions, as the default strings interfere with the prompt.
> 
> Any chance these could be made to work as documented, removing the
> dependency on show-mode-in-prompt?

The `dependency' on show-mode-in-prompt is intentional: the strings aren't
prefixed to the displayed prompt string unless that variable is enabled.
That has been the case even when the strings weren't user-settable (e.g.,
bash-4.3). If the documentation doesn't make that clear, then I need to
clarify it.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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