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