Mercurial > dropbear
comparison cli-chansession.c @ 320:08b69964e408 agent-client
propagate from branch 'au.asn.ucc.matt.dropbear' (head 138a11bc1e2babcd8b1182e6cb2a85d4e9404b11)
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 12b2f59db65e7339d340e95ac67d6d9ddb193c2b)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 06 Jun 2006 15:40:09 +0000 |
parents | 36d21680a9d3 |
children | a9e0ddac5ba7 |
comparison
equal
deleted
inserted
replaced
297:79bf1023cf11 | 320:08b69964e408 |
---|---|
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 */ |