bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] beta2 bugs in dump-variables and *-mode-string


From: Chet Ramey
Subject: Re: [Bug-readline] beta2 bugs in dump-variables and *-mode-string
Date: Wed, 27 Jul 2016 15:16:48 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 7/27/16 10:30 AM, Steve Jones wrote:
> I've just started testing the new readline/bash and found two issues.
> 
> dump-variables() always shows the default variables for
> vim-*-mode-string or the emacs-mode-string.  here is a fix for that one.

Thanks for the report and fix.


> The other is that if non-printing characters are used in the
> *-mode-strings then the strings starts leaking into the line.  This
> happens with both vi and emacs mode.  Also the show-mode string is not
> updated correctly when switching between modes.  my strings are:
> 
> set emacs-mode-string "\1\e[1;address@hidden "
> set vi-ins-mode-string "\1\e[1;32m\2+\1\e[0m\2 "
> set vi-cmd-mode-string "\1\e[1;31m\2-\1\e[0m\2 "

I can't reproduce this in bash, even with a PS1 that contains non-printing
characters.  Can you explain how you are reproducing this?

Chet
-- 
``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]