Skip to content

Conversation

@amjadsy
Copy link
Collaborator

@amjadsy amjadsy commented Apr 16, 2025

Description of changes:

Fix issue with eb health --refresh on Windows where the health screen does not load properly and it refreshes frequently. By default, Python's print() function adds a newline character (\n) at the end of the output. The end='' parameter overrides this behavior, telling Python not to add a newline. In Windows this causes a carriage return which resets the cursor location from the location that we saved. As a result, the EB CLI is not able to resume updating and this results in flickering as it reset the cursor position.

Testing:
Tested command on Windows instance, observed properly terminal formatting with refresh occurring at expected interval and no flickering. Test on Mac OS as well and existing behavior is preserved.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rahulrajaram rahulrajaram requested review from a team and rahulrajaram April 16, 2025 21:11
@rahulrajaram rahulrajaram merged commit a8df890 into aws:master Apr 17, 2025
2 of 4 checks passed
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.

3 participants