Skip to content

Improve console clear screen performance#618

Merged
saghul merged 2 commits intomasterfrom
improve-clear-screen
Jul 18, 2024
Merged

Improve console clear screen performance#618
saghul merged 2 commits intomasterfrom
improve-clear-screen

Conversation

@saghul
Copy link
Copy Markdown
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.

saghul added 2 commits July 18, 2024 12:41
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 force-pushed the improve-clear-screen branch from 453e2bb to 485759a Compare July 18, 2024 10:41
@saghul saghul merged commit 1c59ce7 into master Jul 18, 2024
@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