mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
4d86f5979d
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]
26 lines
415 B
C
26 lines
415 B
C
/*
|
|
* 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;
|
|
}
|