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 [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline