Lines Matching defs:ws
241 struct winsize ws;
243 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) < 0) {
245 ws.ws_row = 25;
246 ws.ws_col = 80;
247 ws.ws_xpixel = 0;
248 ws.ws_ypixel = 0;
251 buf_putint(ses.writepayload, ws.ws_col); /* Cols */
252 buf_putint(ses.writepayload, ws.ws_row); /* Rows */
253 buf_putint(ses.writepayload, ws.ws_xpixel); /* Width */
254 buf_putint(ses.writepayload, ws.ws_ypixel); /* Height */