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>
|
|
|
|
|
2003-02-01 12:54:40 +00:00
|
|
|
FontSpec platform_default_fontspec(const char *name)
|
|
|
|
{
|
|
|
|
FontSpec ret;
|
|
|
|
if (!strcmp(name, "Font")) {
|
|
|
|
strcpy(ret.name, "Courier New");
|
|
|
|
ret.isbold = 0;
|
|
|
|
ret.charset = ANSI_CHARSET;
|
|
|
|
ret.height = 10;
|
|
|
|
} else {
|
|
|
|
ret.name[0] = '\0';
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
Filename platform_default_filename(const char *name)
|
|
|
|
{
|
|
|
|
Filename ret;
|
|
|
|
if (!strcmp(name, "LogFileName"))
|
|
|
|
strcpy(ret.path, "putty.log");
|
|
|
|
else
|
|
|
|
*ret.path = '\0';
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|