Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Add customizable `vcs` prompt theme (was Re: [RFC][PATCH] `newuser` prompt theme)



On Mon, Aug 8, 2022 at 12:13 PM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
>
> On Wed, Jun 23, 2021 at 8:26 PM Roman Perepelitsa
> <roman.perepelitsa@xxxxxxxxx> wrote:
> >
> > Start a new process in precmd if none are running. If one is already
> > running, don't start a new process but remember that its results are
> > "dirty". When a background process completes, display its results if
> > they aren't marked dirty. If they are marked dirty, don't display the
> > results but start a new process instead.
>
> Using this approach, how would you deal with processes that (for all
> practical purposes) might potentially never finish? In that case, your
> callback function will never get called and you'll never start a new
> process again.

Correct. I consider this behavior desirable. There should be a visual
clue to indicate that the system is awaiting a background process to
complete. The fact that this indicator will stay forever will make it
clear that the process that is supposed to terminate has hung up.

Roman.




Messages sorted by: Reverse Date, Date, Thread, Author