]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - windows/windefs.c
Support for Windows PuTTY connecting straight to a local serial port
[PuTTY.git] / windows / windefs.c
1 /*
2  * windefs.c: default settings that are specific to Windows.
3  */
4
5 #include "putty.h"
6
7 #include <commctrl.h>
8
9 FontSpec platform_default_fontspec(const char *name)
10 {
11     FontSpec ret;
12     if (!strcmp(name, "Font")) {
13         strcpy(ret.name, "Courier New");
14         ret.isbold = 0;
15         ret.charset = ANSI_CHARSET;
16         ret.height = 10;
17     } else {
18         ret.name[0] = '\0';
19     }
20     return ret;
21 }
22
23 Filename platform_default_filename(const char *name)
24 {
25     Filename ret;
26     if (!strcmp(name, "LogFileName"))
27         strcpy(ret.path, "putty.log");
28     else
29         *ret.path = '\0';
30     return ret;
31 }
32
33 char *platform_default_s(const char *name)
34 {
35     if (!strcmp(name, "SerialLine"))
36         return dupstr("COM1");
37     return NULL;
38 }
39
40 int platform_default_i(const char *name, int def)
41 {
42     return def;
43 }