1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 09:07:33 -05:00

I'm sick of all those #ifdefs in settings.c, and in any case plink

and pterm need at least one default setting to be _different_ (pterm
needs the default term type to be `xterm', while plink needs it to
be taken from $TERM). So here's a completely new alternative
mechanism for platform- and app-specific default settings. Ben will
probably want to check the integrity of the Mac port, since I've
fiddled with it without testing that it still compiles.

[originally from svn r2513]
This commit is contained in:
Simon Tatham
2003-01-09 18:06:29 +00:00
parent 10c1d43ac6
commit 4d86f5979d
7 changed files with 154 additions and 41 deletions

25
windefs.c Normal file
View File

@ -0,0 +1,25 @@
/*
* windefs.c: default settings that are specific to Windows.
*/
#include <windows.h>
#include <commctrl.h>
#include "winstuff.h"
#include "puttymem.h"
#include "putty.h"
char *platform_default_s(char *name)
{
if (!strcmp(name, "Font"))
return "Courier New";
return NULL;
}
int platform_default_i(char *name, int def)
{
if (!strcmp(name, "FontCharSet"))
return ANSI_CHARSET;
return def;
}