@@ -1507,12 +1507,19 @@ client_simple_escape_filter(Channel *c, char *buf, int len)
1507
1507
1508
1508
#ifdef WIN32_FIXME
1509
1509
u_char * client_ansi_parser_filter (Channel * c , u_char * * buf , u_int * len ) {
1510
- /* TODO - account fo error/extended stream*/
1510
+ /* TODO - account for error/extended stream*/
1511
+ char * respbuf = NULL ;
1512
+ size_t resplen = 0 ;
1513
+
1514
+
1511
1515
if (c -> client_tty ) {
1512
- telProcessNetwork (buffer_ptr (& c -> output ), buffer_len (& c -> output ));
1513
- buffer_clear (& c -> output );
1514
- buffer_append (& c -> output , " \b" , 2 );
1515
- * buf = buffer_ptr (& c -> output );
1516
+ if (telProcessNetwork (buffer_ptr (& c -> output ), buffer_len (& c -> output ), & respbuf , & resplen ) == 0 )
1517
+ buffer_clear (& c -> output );
1518
+ if (respbuf != NULL ) {
1519
+ sshbuf_put (& c -> input , respbuf , resplen );
1520
+ buffer_clear (& c -> output );
1521
+ }
1522
+ * buf = buffer_ptr (& c -> output );
1516
1523
* len = buffer_len (& c -> output );
1517
1524
return * buf ;
1518
1525
}
@@ -2603,7 +2610,7 @@ client_session2_setup(int id, int want_tty, int want_subsystem,
2603
2610
tty_make_modes (-1 , tiop );
2604
2611
2605
2612
#else
2606
- packet_put_cstring (term != NULL ? term : "vt220 " );
2613
+ packet_put_cstring (term != NULL ? term : "ansi " );
2607
2614
packet_put_int ((u_int ) ScreenX );
2608
2615
packet_put_int ((u_int ) ScrollBottom );
2609
2616
packet_put_int ((u_int ) 640 );
0 commit comments