-
Notifications
You must be signed in to change notification settings - Fork 52
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
KEY_RESIZE not fired #32
Comments
I've tried to get to the bottom of this one but it appears that it may be a cgo bug. |
After further research this is a result of golang signal handling. Go takes control of all signals so the underlying C code never sees the signal. An initial work around is to use signal.Notify() for SIGWINCH. You can then manually do resizing. Be forewarned that ncurses will not play nice with go routines so take extra care. |
Looks like I was correct in that using signal.Notify will trap the signal as in C. See issue #34 for the solution. |
Thank you !! |
This go code doesn't receive KEY_RESIZE, when I resize the terminal window.
Here is the other version that can get KEY_RESIZE which is written in C.
The text was updated successfully, but these errors were encountered: