version 1.193, 2008/05/09 16:21:13 |
version 1.194, 2008/05/19 20:53:52 |
|
|
|
|
if (want_tty) { |
if (want_tty) { |
struct winsize ws; |
struct winsize ws; |
struct termios tio; |
|
|
|
/* Store window size in the packet. */ |
/* Store window size in the packet. */ |
if (ioctl(in_fd, TIOCGWINSZ, &ws) < 0) |
if (ioctl(in_fd, TIOCGWINSZ, &ws) < 0) |
|
|
packet_put_int((u_int)ws.ws_row); |
packet_put_int((u_int)ws.ws_row); |
packet_put_int((u_int)ws.ws_xpixel); |
packet_put_int((u_int)ws.ws_xpixel); |
packet_put_int((u_int)ws.ws_ypixel); |
packet_put_int((u_int)ws.ws_ypixel); |
tio = get_saved_tio(); |
if (tiop == NULL) |
tty_make_modes(-1, tiop != NULL ? tiop : &tio); |
tiop = get_saved_tio(); |
|
tty_make_modes(-1, tiop); |
packet_send(); |
packet_send(); |
/* XXX wait for reply */ |
/* XXX wait for reply */ |
c->client_tty = 1; |
c->client_tty = 1; |