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

move handling of event to prevent thread crash #12

Merged
merged 1 commit into from
Feb 27, 2016
Merged

move handling of event to prevent thread crash #12

merged 1 commit into from
Feb 27, 2016

Conversation

squarism
Copy link
Contributor

This fixes the thread crash but the original code didn't seem to actually resize the window. While (manually) testing, I took out the callbacks and saw no visible change but I'm probably just not understanding what it's doing.

So, this seems to work the same but I'm not 100% on the actual resizing callback.

The exit would crash the same and this seems to fix that (ctrl-c).

piotrmurach added a commit that referenced this pull request Feb 27, 2016
move handling of event to prevent thread crash
@piotrmurach piotrmurach merged commit 1e5865f into piotrmurach:master Feb 27, 2016
@piotrmurach
Copy link
Owner

Thanks for looking into this! The resizing callback is for situation where you set your expected width in terms of terminal columns, let's say 100, and then attempt to resize the window to 60 columns. The result should be that the actual progress bar recalculates the ratio and scales the whole thing down without breaking.

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.

None yet

2 participants