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:
25
windefs.c
Normal file
25
windefs.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user