--- a/clientloop.c
+++ b/clientloop.c
@@ -1468,6 +1468,7 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
/* Main loop of the client for the interactive session mode. */
while (!quit_pending) {
+ fprintf(stderr, "%c]0;%s%c", '\033', host, '\007');
/* Process buffered packets sent by the server. */
client_process_buffered_input_packets();
修改如上面的代码所示,目前只会这样修改。若哪个大神有好的方法,请告诉我,谢谢!@