version 1.157, 2006/03/19 18:56:41 |
version 1.158, 2006/03/20 18:14:02 |
|
|
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) |
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) |
return; |
return; |
packet_start(SSH_CMSG_WINDOW_SIZE); |
packet_start(SSH_CMSG_WINDOW_SIZE); |
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); |
packet_send(); |
packet_send(); |
} |
} |
} |
} |
|
|
|
|
channel_request_start(id, "pty-req", 0); |
channel_request_start(id, "pty-req", 0); |
packet_put_cstring(term != NULL ? term : ""); |
packet_put_cstring(term != NULL ? term : ""); |
packet_put_int(ws.ws_col); |
packet_put_int((u_int)ws.ws_col); |
packet_put_int(ws.ws_row); |
packet_put_int((u_int)ws.ws_row); |
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); |
tio = get_saved_tio(); |
tio = get_saved_tio(); |
tty_make_modes(-1, tiop != NULL ? tiop : &tio); |
tty_make_modes(-1, tiop != NULL ? tiop : &tio); |
packet_send(); |
packet_send(); |