Fixed the printing and charset combo boxes in Unix PuTTY. (The
[u/mdw/putty] / unix / ptermm.c
1 /*
2 * pterm main program.
3 */
4
5 #include <stdio.h>
6 #include <stdlib.h>
7
8 #include "putty.h"
9
10 const char *const appname = "pterm";
11
12 Backend *select_backend(Config *cfg)
13 {
14 return &pty_backend;
15 }
16
17 int cfgbox(Config *cfg)
18 {
19 return 1; /* no-op in pterm */
20 }
21
22 void cleanup_exit(int code)
23 {
24 exit(code);
25 }
26
27 int process_nonoption_arg(char *arg, Config *cfg)
28 {
29 return 0; /* pterm doesn't have any. */
30 }
31
32 char *make_default_wintitle(char *hostname)
33 {
34 return dupstr("pterm");
35 }
36
37 int main(int argc, char **argv)
38 {
39 extern int pt_main(int argc, char **argv);
40 extern void pty_pre_init(void); /* declared in pty.c */
41
42 cmdline_tooltype = TOOLTYPE_NONNETWORK;
43
44 pty_pre_init();
45
46 return pt_main(argc, argv);
47 }