deplace the resize() function from c_ncurses class to c_ui class
call ioctl() function when SIGWINCH signal is catched