Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15648
| From | L A Walsh <bash@tlinx.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue |
| Date | 2019-11-25 18:29 -0800 |
| Message-ID | <mailman.2666.1574735821.13325.bug-bash@gnu.org> (permalink) |
| References | <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.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
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue L A Walsh <bash@tlinx.org> - 2019-11-25 18:29 -0800
csiph-web