Fix many things for do the resize. I don't use SIGWINCH and ioctl() anymore but the ncurses event KEY_RESIZE and I resize all windows with a ratio by rapport at the current and first size of the main window. Create new files c_pos_dim.h .cpp.