mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Send the IUTF8 terminal mode in SSH "pty-req"s.
An opcode for this was recently published in https://tools.ietf.org/html/draft-sgtatham-secsh-iutf8-00 . The default setting is conditional on frontend_is_utf8(), which is consistent with the pty back end's policy for setting the same flag locally. Of course, users can override the setting either way in the GUI configurer, the same as all other tty modes.
This commit is contained in:
@ -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? */
|
||||
|
Reference in New Issue
Block a user