On 24/9/2009, "Thomas Dickey" <address@hidden> wrote:
On Thu, 24 Sep 2009, james morris wrote:
Hi,
gdb shows:
(gdb) handle SIGWINCH
Signal Stop Print Pass to program Description
SIGWINCH No No Yes Window size changed
but resizing the window still has no effect (KEY_RESIZE is detected in my
code ;-)
I'm not sure what's not working: if your program reads KEY_RESIZE, and
then does a refresh (or another wgetch which does a refresh), ncurses
is supposed to call resizeterm, which resizes stdscr, etc., to fit
in the new LINES/COLS limits.
Yes, that happens normally, but when I run the program in gdb and resize
the window, wgetch never returns KEY_RESIZE.
(Sorry, in an effort to get straight to the point I omitted too much
detail.)
So it seems that gdb is not passing SIGWINCH to ncurses, despite the
above output claiming it does. As much as I could find on the subject
was this:
http://www.mail-archive.com/address@hidden/msg231762.html
Is it still a bug in the Debian gdb, or is there something else which
needs setting within gdb for it to pass SIGWINCH to program?