X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/1409c1b3e8a10189f89c4f50609cd5d1c8221385..5a9eb1056517b6ee6efa526a3a6b5a21aa802648:/unix/pterm.c diff --git a/unix/pterm.c b/unix/pterm.c index b7e2b934..dbcb5455 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -83,6 +83,23 @@ char *x_get_default(char *key) return XGetDefault(GDK_DISPLAY(), app_name, key); } +/* + * Default settings that are specific to pterm. + */ +char *platform_default_s(char *name) +{ + if (!strcmp(name, "Font")) + return "fixed"; /* COE_NORMAL works badly in an xterm */ + return NULL; +} + +int platform_default_i(char *name, int def) +{ + if (!strcmp(name, "CloseOnExit")) + return COE_ALWAYS; /* COE_NORMAL works badly in an xterm */ + return def; +} + void ldisc_update(void *frontend, int echo, int edit) { /*