Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15648 > unrolled thread

Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue

Started byL A Walsh <bash@tlinx.org>
First post2019-11-25 18:29 -0800
Last post2019-11-25 18:29 -0800
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue L A Walsh <bash@tlinx.org> - 2019-11-25 18:29 -0800

#15648 — Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue

FromL A Walsh <bash@tlinx.org>
Date2019-11-25 18:29 -0800
SubjectRe: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Message-ID<mailman.2666.1574735821.13325.bug-bash@gnu.org>



On 2019/11/25 07:05, <rootlexx@mail.ru> wrote:
> # As you see, now everything works as expected i.e. the issue seems
> # to be in the way readline is handling multibyte invisible characters 
> # in a prompt, *probably* in the rl_redisplay() function.
>   
----
    Multi-byte or not, invisible characters need to be enclosed
as documented under 'PROMPTING':

     \[     begin a sequence of non-printing characters, which  could
            be  used  to  embed  a terminal control sequence into the
            prompt
     \]     end a sequence of non-printing characters

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web