-
Notifications
You must be signed in to change notification settings - Fork 159
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 resize of menuconfig in Python 3 on MacOs #85
Conversation
@ulfalizer @kumekay Please take a look. I think this is a sufficient fix. |
This looks good and works for me just fine |
c = win.get_wch() | ||
else: | ||
# curses.error is thrown in Python 3 on MacOs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could change the message to say
# Work around a crash where get_wch() raises curses.error on macOS when
# resizing the terminal, by falling back on getch(). This needs more
# investigation. It doesn't happen on all systems.
See #84 (comment) too. Would be nice to narrow down the configurations that have this issue.
Pushed out a release with a fix (same as this one, just with some more comments): 68bcecd Would be nice to figure out and report the root issue at some point though. Thanks. |
Update menuconfig (and kconfiglib and guiconfig, just to sync) to upstream revision 424d0d38e7, to get this commit in, which works around a crash on some macOS Python installations. menuconfig: Work around crash on resize on some macOS systems get_wch() has started raising curses.error when resizing the terminal on some macOS Python installations. Work around for now by falling back on getch(), which still works. See ulfalizer/Kconfiglib#84. Needs more investigation, but I don't have a Mac handy. Based on ulfalizer/Kconfiglib#85, but with some more comments. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
Update menuconfig (and kconfiglib and guiconfig, just to sync) to upstream revision 424d0d38e7, to get this commit in, which works around a crash on some macOS Python installations. menuconfig: Work around crash on resize on some macOS systems get_wch() has started raising curses.error when resizing the terminal on some macOS Python installations. Work around for now by falling back on getch(), which still works. See ulfalizer/Kconfiglib#84. Needs more investigation, but I don't have a Mac handy. Based on ulfalizer/Kconfiglib#85, but with some more comments. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
Closes #84