Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress in the ANSI title of the terminal #1635

Open
KommuSoft opened this issue Nov 25, 2024 · 1 comment
Open

Progress in the ANSI title of the terminal #1635

KommuSoft opened this issue Nov 25, 2024 · 1 comment

Comments

@KommuSoft
Copy link

I'm wondering if it might be a good idea to add an option to log progress to the title of an (ANSI) terminal.

Indeed, we can write to a ANSI terminal with '\033]0;15%\7', and then 15% appears at the title of that terminal.

I use such "trick" for some of my own programs to track the progress/status of a program I run in the background, for example if you convert a bunch of files, you use a different tab to continue working, but so the UI still shows the title of the other tab page, and thus you are kept informed about the progress.

I think the changes are rather small, and we can, to some extent, reuse the rendering of the progress bar, except that we probably should limit the number of characters. But before making much change, I first want to ask if this looks like a good idea?

@tanriol
Copy link

tanriol commented Dec 17, 2024

Note that there's a dedicated progress reporting escape sequence that's supported by Windows Terminal since ~2020, is becoming used by systemd progress reporting and thus is likely to become supported sooner or later by other terminals and libraries (VTE library; foot, Gnome's Ptyxis, KDE's Konsole, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants