]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - terminal.c
Send the IUTF8 terminal mode in SSH "pty-req"s.
[PuTTY.git] / terminal.c
index 26a3f0c93f64b90228802ea6a50027a6500dd21d..7a444b7192647b1841fec3fe6aa6f0a79128d70a 100644 (file)
@@ -6374,6 +6374,8 @@ char *term_get_ttymode(Terminal *term, const char *mode)
     const char *val = NULL;
     if (strcmp(mode, "ERASE") == 0) {
        val = term->bksp_is_delete ? "^?" : "^H";
+    } else if (strcmp(mode, "IUTF8") == 0) {
+       val = frontend_is_utf8(term->frontend) ? "yes" : "no";
     }
     /* FIXME: perhaps we should set ONLCR based on lfhascr as well? */
     /* FIXME: or ECHO and friends based on local echo state? */