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

Improve console clear screen performance #618

Merged
merged 2 commits into from
Jul 18, 2024
Merged

Conversation

saghul
Copy link
Owner

@saghul saghul commented Jul 18, 2024

See the individual commits.

It might not fully fix #617 but it's a step in the right direction.

It has side-effects: https://stackoverflow.com/a/37778152

The new implementation follows Node, that is, it moves the cursor home
and then it clears the screen down from there.

IN addition, avoid doing any of this if the terminal is dumb.
@saghul saghul merged commit 1c59ce7 into master Jul 18, 2024
18 checks passed
@saghul saghul deleted the improve-clear-screen branch July 18, 2024 12:27
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.

stdout.write performance improvements
1 participant