mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 05:52:48 -05:00
pterm: set IUTF8 on pty devices depending on charset.
In a UTF-8 pterm, it makes sense to set the IUTF8 flag (on systems that have one) on the pty device, so that line editing will take account of UTF-8 multibyte characters.
This commit is contained in:
@ -3540,6 +3540,12 @@ void uxsel_input_remove(uxsel_id *id) {
|
||||
sfree(id);
|
||||
}
|
||||
|
||||
int frontend_is_utf8(void *frontend)
|
||||
{
|
||||
struct gui_data *inst = (struct gui_data *)frontend;
|
||||
return inst->ucsdata.line_codepage == CS_UTF8;
|
||||
}
|
||||
|
||||
char *setup_fonts_ucs(struct gui_data *inst)
|
||||
{
|
||||
int shadowbold = conf_get_int(inst->conf, CONF_shadowbold);
|
||||
|
Reference in New Issue
Block a user