git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH try2] completion: prompt: use generic colors

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Mar 16, 2023, 23:21 UTC
Message-ID
<CAMP44s3eVcfaeQC-BB+F4FE1e7m=fFj6F3pSP-qrb9uPX9zT1A@mail.gmail.com>
In-Reply-To
<xmqq5yb0i9nz.fsf@gitster.g>
On Thu, Mar 16, 2023 at 5:00 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
>
> Joakim Petersen <joak-pet@online.no> writes:
>
> > I've played around a bit with this patch, and it seems to work as
> > advertised.
>
> As the change itself is so trivial and likely to exhibit problem
> immediatly if it were not right (e.g. for some version of the shell
> but not for others), let's queue it.

For the record, it's not even the shell, it's the readline library, and those markers are present since the initial import in 2011:

https://git.savannah.gnu.org/cgit/readline.git/tree/readline.h?id=06cd36cdc90634c88636a6d09230c573078ead0e#n282

#define RL_PROMPT_START_IGNORE '\001' #define RL_PROMPT_END_IGNORE '\002'

-- 
Felipe Contreras
Previous: Junio C Hamano
Message 6 of 6 in “completion: prompt: use generic colors”
  1. completion: prompt: use generic colorsFelipe Contreras, Feb 28, 2023
  2. Junio C HamanoMar 1, 2023
  3. Felipe ContrerasMar 1, 2023
  4. Joakim PetersenMar 16, 2023
  5. Junio C HamanoMar 16, 2023
  6. Felipe ContrerasMar 16, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.