Re: Weird command line editing issues with Bash

Steve Wechsler <[email protected]> Thu, 9 Nov 2023 16:28:33 -0500
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAAKkq=F-FDy=aRVdvQ8Gn9FBjoWAz0gcGpL5xgzEfM8-gJvn_Q@mail.gmail.com>
--000000000000732f600609bee361
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hmm, that seems to have done it. Thanks!


On Thu, Nov 9, 2023 at 4:17=E2=80=AFPM Michael Grant <mgrant-q2t/[email protected]> wro=
te:

>
> Note: Wrapping the tput output in \[ \] is recommended by the Bash man
> page. This helps Bash ignore non-printable characters so that it correctl=
y
> calculates the size of the prompt.
>
> https://wiki.archlinux.org/title/Bash/Prompt_customization
>

--000000000000732f600609bee361
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hmm, that seems to have done it. Thanks!<div><br></div></d=
iv><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On =
Thu, Nov 9, 2023 at 4:17=E2=80=AFPM Michael Grant &lt;<a href=3D"mailto:mgr=
ant-q2t/[email protected]">mgrant-q2t/[email protected]</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><u></u><div><div dir=3D"auto"><br>Note: Wr=
apping the tput output in \[ \] is recommended by the Bash man page. This h=
elps Bash ignore non-printable characters so that it correctly calculates t=
he size of the prompt.<br><br><a href=3D"https://wiki.archlinux.org/title/B=
ash/Prompt_customization" target=3D"_blank">https://wiki.archlinux.org/titl=
e/Bash/Prompt_customization</a><br></div></div></blockquote></div>

--000000000000732f600609bee361--