Skip to content

Don't clear the screen when printing stats #2499

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

Closed
wants to merge 5 commits into from

Conversation

k4lizen
Copy link

@k4lizen k4lizen commented Jul 19, 2025

Closes: #2498

The way most applications (btop/htop etc) do this stats-type screen is switch to an alternate screen buffer on entry, and switch back on exit. Doing the same seems to work pretty well.

That being said it might be smarter to do this switch right after "[+] All set and ready to roll!" and return back on exit, instead of swapping buffers on each display. If theres a nice "entrypoint" and "exitpoint"-type place to put these swaps, let me know.

@k4lizen
Copy link
Author

k4lizen commented Jul 19, 2025

It would be nice if we could add one final print of stats to the normal buffer before we exit, so the latest stats can persist in the terminal scrollback.

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

Successfully merging this pull request may close these issues.

Don't clear the screen when printing the banner
1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy