1
0
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:
Simon Tatham
2015-09-01 18:35:38 +01:00
parent ad994bab57
commit 1840103c05
3 changed files with 24 additions and 2 deletions

View File

@ -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);