2003-01-09 18:06:29 +00:00
|
|
|
/*
|
|
|
|
* windefs.c: default settings that are specific to Windows.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "putty.h"
|
|
|
|
|
2003-10-12 13:46:12 +00:00
|
|
|
#include <commctrl.h>
|
|
|
|
|
2011-10-01 17:38:59 +00:00
|
|
|
FontSpec *platform_default_fontspec(const char *name)
|
2003-02-01 12:54:40 +00:00
|
|
|
{
|
2011-10-01 17:38:59 +00:00
|
|
|
if (!strcmp(name, "Font"))
|
|
|
|
return fontspec_new("Courier New", 0, 10, ANSI_CHARSET);
|
|
|
|
else
|
|
|
|
return fontspec_new("", 0, 0, 0);
|
2003-02-01 12:54:40 +00:00
|
|
|
}
|
|
|
|
|
2011-10-02 11:01:57 +00:00
|
|
|
Filename *platform_default_filename(const char *name)
|
2003-02-01 12:54:40 +00:00
|
|
|
{
|
|
|
|
if (!strcmp(name, "LogFileName"))
|
2011-10-02 11:01:57 +00:00
|
|
|
return filename_from_str("putty.log");
|
2003-02-01 12:54:40 +00:00
|
|
|
else
|
2011-10-02 11:01:57 +00:00
|
|
|
return filename_from_str("");
|
2003-02-01 12:54:40 +00:00
|
|
|
}
|
|
|
|
|
2003-01-14 18:43:45 +00:00
|
|
|
char *platform_default_s(const char *name)
|
2003-01-09 18:06:29 +00:00
|
|
|
{
|
2006-08-28 10:35:12 +00:00
|
|
|
if (!strcmp(name, "SerialLine"))
|
|
|
|
return dupstr("COM1");
|
2003-01-09 18:06:29 +00:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2018-10-29 19:57:31 +00:00
|
|
|
bool platform_default_b(const char *name, bool def)
|
|
|
|
{
|
|
|
|
return def;
|
|
|
|
}
|
|
|
|
|
2003-01-14 18:43:45 +00:00
|
|
|
int platform_default_i(const char *name, int def)
|
2003-01-09 18:06:29 +00:00
|
|
|
{
|
|
|
|
return def;
|
|
|
|
}
|