comparison cli-session.c @ 41:18eccbfb9641

added window-size change handling
author Matt Johnston <matt@ucc.asn.au>
date Sun, 01 Aug 2004 09:41:37 +0000
parents b4874d772210
children 942b22d7dd1c
comparison
equal deleted inserted replaced
40:b4874d772210 41:18eccbfb9641
78 78
79 cli_ses.state = STATE_NOTHING; 79 cli_ses.state = STATE_NOTHING;
80 cli_ses.kex_state = KEX_NOTHING; 80 cli_ses.kex_state = KEX_NOTHING;
81 81
82 cli_ses.tty_raw_mode = 0; 82 cli_ses.tty_raw_mode = 0;
83 cli_ses.winchange = 0;
83 84
84 /* For printing "remote host closed" for the user */ 85 /* For printing "remote host closed" for the user */
85 ses.remoteclosed = cli_remoteclosed; 86 ses.remoteclosed = cli_remoteclosed;
86 ses.buf_match_algo = cli_buf_match_algo; 87 ses.buf_match_algo = cli_buf_match_algo;
87 88
168 169
169 case SESSION_RUNNING: 170 case SESSION_RUNNING:
170 if (ses.chancount < 1) { 171 if (ses.chancount < 1) {
171 cli_finished(); 172 cli_finished();
172 } 173 }
174
175 if (cli_ses.winchange) {
176 cli_chansess_winchange();
177 }
173 return; 178 return;
174 179
175 /* XXX more here needed */ 180 /* XXX more here needed */
176 181
177 182