mainThe GNU Bourne-Again SHell - Support: sr #109458, Colors in vi-*-mode-string...

 
 

sr #109458: Colors in vi-*-mode-string generate a bug on long line

Submitter:  Danny Colin <dannycolin>
Submitted:  Thu 08 Feb 2018 12:37:56 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 17 Feb 2018 06:07:56 PM UTC, comment #1: 

If the text you add to the prompt or the mode string contains characters that don't consume screen space, you need to bracket them with \1 and \2 sequences.

This is documented:

"Use the @samp{\1} and @samp{\2} escapes to begin and end
sequences of non-printing characters, which can be used to
embed a terminal control sequence into the mode string."

Chet Ramey <chet>
Group administrator
Thu 08 Feb 2018 12:37:56 AM UTC, original submission:  

Hi,

When I add a color code like \e[XXm in my vi-*-mode-string it generate a bug if I type a line longer than my terminal window. If I set vi-*-mode-string only with text, it works without any problem. Any idea why?

N.B. See the picture in the attached file.

Thanks


Danny Colin <dannycolin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by dannycolin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-17 chet StatusNone Invalid
    2018-02-08 dannycolin Attached File- Added bash_vi_mode_string_bug.png, #43204

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code