Searched refs:wininfo (Results 1 – 2 of 2) sorted by relevance
482 struct winsize wininfo; local483 if (ioctl(fd, TIOCGWINSZ, &wininfo) != -1) {484 if (0 < wininfo.ws_col)485 columns = wininfo.ws_col;486 if (0 < wininfo.ws_row)487 lines = wininfo.ws_row;
507 struct winsize wininfo; in restartterm() local508 if (ioctl(fd, TIOCGWINSZ, &wininfo) != -1) { in restartterm()509 if (0 < wininfo.ws_col) in restartterm()510 columns = wininfo.ws_col; in restartterm()511 if (0 < wininfo.ws_row) in restartterm()512 lines = wininfo.ws_row; in restartterm()