[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: |
Sun, 10 Dec 2017 14:24:50 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 12/10/17 12:02 AM, Rob Foehl wrote:
> On Sat, 9 Dec 2017, Chet Ramey wrote:
>
>> So the problem is simply that you don't like the default strings in
>> bash-4.3?
>
> Well, subjectively, yes. There's a difference between "don't like" and
> "won't work in the larger context of complex prompts", though.
So the issue is bugs in pre-7.0 versions of readline? That cause redisplay
issues with `complex' prompts?
> On desirability: the default behavior of show-mode-in-prompt doesn't play
> well with complex prompts, and setting any of the mode string variables
> would seem to indicate intent that they be used, in which case
> show-mode-in-prompt is superfluous. Does a use case exist for setting mode
> strings but not using them?
The original idea was that setting show-mode-in-prompt would cause a fixed
string (that happened to be a single character) to be displayed at the
beginning of the prompt. If that variable wasn't set, they wouldn't be
displayed. Making the prompt strings user-settable didn't change that.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://tiswww.cwru.edu/~chet/