147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
-
+
-
-
+
-
-
+
|
if (conf_get_int(inst->conf, CONF_close_on_exit) == FORCE_ON)
cleanup_exit(1);
}
/*
* Default settings that are specific to pterm.
*/
FontSpec platform_default_fontspec(const char *name)
FontSpec *platform_default_fontspec(const char *name)
{
FontSpec ret;
if (!strcmp(name, "Font"))
strcpy(ret.name, "server:fixed");
return fontspec_new("server:fixed");
else
*ret.name = '\0';
return ret;
return fontspec_new("");
}
Filename platform_default_filename(const char *name)
{
Filename ret;
if (!strcmp(name, "LogFileName"))
strcpy(ret.path, "putty.log");
|
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
|
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
|
-
+
-
-
-
+
+
+
-
+
-
-
-
+
+
+
-
+
-
-
-
+
+
+
-
+
-
-
-
+
+
+
|
--argc, ++argv; /* skip next argument */
continue;
} else if (ret == 1) {
continue;
}
if (!strcmp(p, "-fn") || !strcmp(p, "-font")) {
FontSpec fs;
FontSpec *fs;
EXPECTS_ARG;
SECOND_PASS_ONLY;
strncpy(fs.name, val, sizeof(fs.name));
fs.name[sizeof(fs.name)-1] = '\0';
conf_set_fontspec(conf, CONF_font, &fs);
fs = fontspec_new(val);
conf_set_fontspec(conf, CONF_font, fs);
fontspec_free(fs);
} else if (!strcmp(p, "-fb")) {
FontSpec fs;
FontSpec *fs;
EXPECTS_ARG;
SECOND_PASS_ONLY;
strncpy(fs.name, val, sizeof(fs.name));
fs.name[sizeof(fs.name)-1] = '\0';
conf_set_fontspec(conf, CONF_boldfont, &fs);
fs = fontspec_new(val);
conf_set_fontspec(conf, CONF_font, fs);
fontspec_free(fs);
} else if (!strcmp(p, "-fw")) {
FontSpec fs;
FontSpec *fs;
EXPECTS_ARG;
SECOND_PASS_ONLY;
strncpy(fs.name, val, sizeof(fs.name));
fs.name[sizeof(fs.name)-1] = '\0';
conf_set_fontspec(conf, CONF_widefont, &fs);
fs = fontspec_new(val);
conf_set_fontspec(conf, CONF_font, fs);
fontspec_free(fs);
} else if (!strcmp(p, "-fwb")) {
FontSpec fs;
FontSpec *fs;
EXPECTS_ARG;
SECOND_PASS_ONLY;
strncpy(fs.name, val, sizeof(fs.name));
fs.name[sizeof(fs.name)-1] = '\0';
conf_set_fontspec(conf, CONF_wideboldfont, &fs);
fs = fontspec_new(val);
conf_set_fontspec(conf, CONF_font, fs);
fontspec_free(fs);
} else if (!strcmp(p, "-cs")) {
EXPECTS_ARG;
SECOND_PASS_ONLY;
conf_set_str(conf, CONF_line_codepage, val);
} else if (!strcmp(p, "-geometry")) {
|