Added missing change in clientloop.c
This commit is contained in:
parent
a12970d52a
commit
e4315db0d7
19
clientloop.c
19
clientloop.c
|
@ -1507,12 +1507,19 @@ client_simple_escape_filter(Channel *c, char *buf, int len)
|
|||
|
||||
#ifdef WIN32_FIXME
|
||||
u_char * client_ansi_parser_filter(Channel *c, u_char **buf, u_int *len) {
|
||||
/* TODO - account fo error/extended stream*/
|
||||
/* TODO - account for error/extended stream*/
|
||||
char *respbuf = NULL;
|
||||
size_t resplen = 0;
|
||||
|
||||
|
||||
if (c->client_tty) {
|
||||
telProcessNetwork(buffer_ptr(&c->output), buffer_len(&c->output));
|
||||
buffer_clear(&c->output);
|
||||
buffer_append(&c->output, " \b", 2);
|
||||
*buf = buffer_ptr(&c->output);
|
||||
if (telProcessNetwork(buffer_ptr(&c->output), buffer_len(&c->output), &respbuf, &resplen) == 0)
|
||||
buffer_clear(&c->output);
|
||||
if (respbuf != NULL) {
|
||||
sshbuf_put(&c->input, respbuf, resplen);
|
||||
buffer_clear(&c->output);
|
||||
}
|
||||
*buf = buffer_ptr(&c->output);
|
||||
*len = buffer_len(&c->output);
|
||||
return *buf;
|
||||
}
|
||||
|
@ -2603,7 +2610,7 @@ client_session2_setup(int id, int want_tty, int want_subsystem,
|
|||
tty_make_modes(-1, tiop);
|
||||
|
||||
#else
|
||||
packet_put_cstring(term != NULL ? term : "vt220");
|
||||
packet_put_cstring(term != NULL ? term : "ansi");
|
||||
packet_put_int((u_int) ScreenX);
|
||||
packet_put_int((u_int) ScrollBottom);
|
||||
packet_put_int((u_int) 640);
|
||||
|
|
Loading…
Reference in New Issue