[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: readline questions
From: |
Christoph Anton Mitterer |
Subject: |
Re: readline questions |
Date: |
Fri, 08 Oct 2021 18:37:06 +0200 |
User-agent: |
Evolution 3.42.0-2 |
Hey Chet.
On Fri, 2021-10-08 at 12:18 -0400, Chet Ramey wrote:
> This is as you discovered: if ESC is part of the set of characters
> that
> terminates an incremental search, it will terminate the search.
> Readline
> doesn't attempt to read far enough ahead to determine whether or not
> the escape sequence resolves to a key binding for reverse-search-
> history
> or, say, backward-char.
I guess it wouldn't possible to have something like that implemented?
Seems that prohibits a number of key sequences that could be quite
handy. Or it could also be nice to differentiate between <Shift> / no-
<Shift> or maybe even left/right <Control> and so on.
> Readline only looks at the value of LS_COLORS when it first
> initializes,
> not on every call. It treats those colors as session-persistent.
I guess that happens on the first prompt being printed? But probably
still after PROMPT_COMMAND is executed the frist time? Cause otherwise
I could use that as a hack to set the "normal" LS_COLORS afterwards.
> Should I move it to the initialization that's done on each call to
> readline()?
Hmm no,... I think the best would be to make the colour simply
configurable as I've asked for over at the readline mailing list. :-)
Thanks,
Chris.