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

fix: erase scrollback when clearing the screen #2267

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

kpodsiad
Copy link
Collaborator

@kpodsiad kpodsiad commented Feb 9, 2024

If during watch mode, one would scroll terminal a bit and then make changes, terminal won't be cleared fully. This results in degraded experience. This PR fixes it.

The missing erase scrollback was inspired by https://github.com/watchexec/clearscreen/blob/main/src/lib.rs#L524, which is used by cargo watch's clear command.

@kpodsiad kpodsiad requested review from tgodzik and ckipp01 February 9, 2024 14:22
@kpodsiad kpodsiad merged commit 00b715a into main Feb 9, 2024
17 checks passed
@kpodsiad kpodsiad deleted the kpodsiadlo/clear-screen branch February 9, 2024 15:08
tgodzik pushed a commit to scala-cli/bloop-core that referenced this pull request Mar 27, 2024
s-nel added a commit to s-nel/bloop that referenced this pull request Jun 5, 2024
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.

2 participants