| 7137 |
buffer_put_int(msg, y); // window height (pixel): |
buffer_put_int(msg, y); // window height (pixel): |
| 7138 |
|
|
| 7139 |
// TTY modeはここで渡す (2005.7.17 yutaka) |
// TTY modeはここで渡す (2005.7.17 yutaka) |
| 7140 |
#if 0 |
buffer_put_char(ttymsg, SSH2_TTY_OP_OSPEED); |
|
s = ""; |
|
|
buffer_put_string(msg, s, strlen(s)); |
|
|
#else |
|
|
buffer_put_char(ttymsg, 129); // TTY_OP_OSPEED_PROTO2 |
|
| 7141 |
buffer_put_int(ttymsg, 9600); // baud rate |
buffer_put_int(ttymsg, 9600); // baud rate |
| 7142 |
buffer_put_char(ttymsg, 128); // TTY_OP_ISPEED_PROTO2 |
buffer_put_char(ttymsg, SSH2_TTY_OP_ISPEED); |
| 7143 |
buffer_put_int(ttymsg, 9600); // baud rate |
buffer_put_int(ttymsg, 9600); // baud rate |
| 7144 |
|
|
| 7145 |
// VERASE |
// VERASE |
| 7146 |
buffer_put_char(ttymsg, 3); |
buffer_put_char(ttymsg, SSH2_TTY_KEY_VERASE); |
| 7147 |
if (pvar->ts->BSKey == IdBS) { |
if (pvar->ts->BSKey == IdBS) { |
| 7148 |
buffer_put_int(ttymsg, 0x08); // BS key |
buffer_put_int(ttymsg, 0x08); // BS key |
| 7149 |
} else { |
} else { |
| 7150 |
buffer_put_int(ttymsg, 0x7F); // DEL key |
buffer_put_int(ttymsg, 0x7F); // DEL key |
| 7151 |
} |
} |
| 7152 |
// TTY_OP_END |
|
| 7153 |
buffer_put_char(ttymsg, 0); |
switch (pvar->ts->CRReceive) { |
| 7154 |
|
case IdLF: |
| 7155 |
|
buffer_put_char(ttymsg, SSH2_TTY_OP_ONLCR); |
| 7156 |
|
buffer_put_int(ttymsg, 0); |
| 7157 |
|
break; |
| 7158 |
|
case IdCR: |
| 7159 |
|
buffer_put_char(ttymsg, SSH2_TTY_OP_ONLCR); |
| 7160 |
|
buffer_put_int(ttymsg, 1); |
| 7161 |
|
break; |
| 7162 |
|
default: |
| 7163 |
|
break; |
| 7164 |
|
} |
| 7165 |
|
|
| 7166 |
|
buffer_put_char(ttymsg, SSH2_TTY_OP_END); // End of terminal modes |
| 7167 |
|
|
| 7168 |
// SSH2では文字列として書き込む。 |
// SSH2では文字列として書き込む。 |
| 7169 |
buffer_put_string(msg, buffer_ptr(ttymsg), buffer_len(ttymsg)); |
buffer_put_string(msg, buffer_ptr(ttymsg), buffer_len(ttymsg)); |
|
#endif |
|
| 7170 |
|
|
| 7171 |
len = buffer_len(msg); |
len = buffer_len(msg); |
| 7172 |
outmsg = begin_send_packet(pvar, SSH2_MSG_CHANNEL_REQUEST, len); |
outmsg = begin_send_packet(pvar, SSH2_MSG_CHANNEL_REQUEST, len); |