comparison cli-chansession.c @ 330:5488db2e9e4e

merge of 332f709a4cb39cde4cedab7c3be89e05f3023067 and ca4ca78b82c5d430c69ce01bf794e8886ce81431
author Matt Johnston <matt@ucc.asn.au>
date Sat, 10 Jun 2006 16:39:40 +0000
parents 36d21680a9d3
children a9e0ddac5ba7
comparison
equal deleted inserted replaced
329:8ed0dce45126 330:5488db2e9e4e
160 TRACE(("leave cli_tty_cleanup")) 160 TRACE(("leave cli_tty_cleanup"))
161 } 161 }
162 162
163 static void put_termcodes() { 163 static void put_termcodes() {
164 164
165 TRACE(("enter put_termcodes"))
166
167 struct termios tio; 165 struct termios tio;
168 unsigned int sshcode; 166 unsigned int sshcode;
169 const struct TermCode *termcode; 167 const struct TermCode *termcode;
170 unsigned int value; 168 unsigned int value;
171 unsigned int mapcode; 169 unsigned int mapcode;
172 170
173 unsigned int bufpos1, bufpos2; 171 unsigned int bufpos1, bufpos2;
172
173 TRACE(("enter put_termcodes"))
174 174
175 if (tcgetattr(STDIN_FILENO, &tio) == -1) { 175 if (tcgetattr(STDIN_FILENO, &tio) == -1) {
176 dropbear_log(LOG_WARNING, "Failed reading termmodes"); 176 dropbear_log(LOG_WARNING, "Failed reading termmodes");
177 buf_putint(ses.writepayload, 1); /* Just the terminator */ 177 buf_putint(ses.writepayload, 1); /* Just the terminator */
178 buf_putbyte(ses.writepayload, 0); /* TTY_OP_END */ 178 buf_putbyte(ses.writepayload, 0); /* TTY_OP_END */