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

Avoid flickering of table output #423

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Conversation

windsource
Copy link
Contributor

@windsource windsource commented Dec 4, 2024

Before this change, a table output created by ank apply was sometimes flickering. This was caused by printing cleanup strings that had been overwritten by the new message in the same println statement. This change uses a mechanism as described in https://stackoverflow.com/a/71453783.

To fix the stests, this change also detects non-interactive use and does not print control characters in that case.

Definition of Done

The PR shall be merged only if all items mentioned in CONTRIBUTING.md have been followed. In case an item is not applicable as described, please provide a short explanation in the description.

Before this change, a table output created by ank apply was sometimes
flickering. This was caused by printing cleanup strings that had been
overwritten by the new message in the same println statement. This
change uses a mechanism as described in
https://stackoverflow.com/a/71453783
@windsource windsource added bug Something isn't working. Issue will appear in the change log "Bug Fixes" ready for review and removed ready for review labels Dec 4, 2024
Copy link
Contributor

@inf17101 inf17101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@inf17101 inf17101 merged commit d4bfdd3 into main Dec 17, 2024
10 checks passed
@inf17101 inf17101 deleted the avoid_flickering_of_table_output branch December 17, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. Issue will appear in the change log "Bug Fixes" ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants