From: Felipe Contreras <email@example.com>
To: Bart Schaefer <firstname.lastname@example.org>
Subject: Re: [PATCH v2] prompt: support generic non-visible regions
Date: Sun, 14 Aug 2022 17:46:54 -0500 [thread overview]
Message-ID: <CAMP44s36=YoiT7Lt-_j6h-fc47z_RS2CexCR++PCZ7p1CXxfEA@mail.gmail.com> (raw)
On Sun, Aug 14, 2022 at 2:57 PM Bart Schaefer <email@example.com> wrote:
> On Thu, Aug 11, 2022 at 4:09 PM Felipe Contreras
> <firstname.lastname@example.org> wrote:
> > readline uses \001 (start of header) and \002 (start of text) as markers
> > to delimit a non-visible character zone, which are necessary to
> > calculate the width of a prompt.
> How does one embed a literal ctrl-A or ctrl-B in the prompt?
What would that achieve?
> I haven't found any readline documentation that explains the use of
> "start of header" or "start of text".
It's in the code:
> I'm also leaning to the opinion that \001 and \002 should only be
> recognized when PROMPT_PERCENT is unset.
That would defeat the primary purpose of the patch, which is to be
able to write prompt helper functions which work in multiple shells.
next prev parent reply other threads:[~2022-08-14 22:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-11 23:09 Felipe Contreras
2022-08-14 19:57 ` Bart Schaefer
2022-08-14 22:46 ` Felipe Contreras [this message]
2022-08-15 1:00 ` Bart Schaefer
2022-08-15 21:37 ` Felipe Contreras
2022-08-17 22:31 ` Bart Schaefer
2022-08-17 22:48 ` Bart Schaefer
2022-08-22 0:17 ` Felipe Contreras
2022-08-22 0:15 ` Felipe Contreras
2022-08-22 0:11 ` [PATCH v3] " Felipe Contreras
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).