version 1.268, 2006/03/19 18:59:30 |
version 1.269, 2006/03/20 18:14:02 |
|
|
/* Store window size in the packet. */ |
/* Store window size in the packet. */ |
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) |
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) |
memset(&ws, 0, sizeof(ws)); |
memset(&ws, 0, sizeof(ws)); |
packet_put_int(ws.ws_row); |
packet_put_int((u_int)ws.ws_row); |
packet_put_int(ws.ws_col); |
packet_put_int((u_int)ws.ws_col); |
packet_put_int(ws.ws_xpixel); |
packet_put_int((u_int)ws.ws_xpixel); |
packet_put_int(ws.ws_ypixel); |
packet_put_int((u_int)ws.ws_ypixel); |
|
|
/* Store tty modes in the packet. */ |
/* Store tty modes in the packet. */ |
tty_make_modes(fileno(stdin), NULL); |
tty_make_modes(fileno(stdin), NULL); |