progress-bar: issue Windows Terminal progress indicating ANSI sequences (#34929)
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Oct 2024 20:00:15 +0000 (21:00 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 20:00:15 +0000 (21:00 +0100)
commit1322af50e59ccd0e1e18194e7ea0aa6f4e872acb
tree648bd04ec940d409ee3ee73e70051d5e111c122c
parentd140d478e2ebee8741cd4363c91b0da3f091d8fe
parent99bd933fa292566ec35133aac24a6e233114df1b
progress-bar: issue Windows Terminal progress indicating ANSI sequences (#34929)

This generates the Windows Terminal OSC sequences indicating progress.
This let's the terminal know that we are doing a slow operation, and how
we are progressing.

Windows Terminal uses this in two ways: it shows a circle in the tab
that completes, and it highlights the progress in the task bar.

I found no Linux terminal that currently supports it, but also none that
didn't like it. Thankfully most terminals correctly ignore unrecognized
OSC sequences.

I think we should just merge this, and see if this trips up too many
people, but I have reason to believe this shouldn't be too bad.

And yes, I do work from Windows Terminal sometimes, ssh into my Linux
build systems, and it is really cute seeing the progress animation
there.