Closed koojunho closed 7 years ago
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.