jjzjj

upScreen

全部标签

c++ - 无法使用 ncurses 确定终端大小

我正在尝试处理调整大小信号(SIGWINCH)voidServer::resizeSignalHandler(inta){signal(SIGWINCH,SIG_IGN);endwin();initscr();refresh();clear();intx,y;getmaxyx(stdscr,y,x);wmove(upScreen,0,0);wmove(downScreen,y/2,0);wresize(upScreen,y/2,x);wresize(downScreen,y/2,x);wclear(upScreen);wclear(downScreen);waddstr(upScree