]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blob - unix/ptermm.c
Event Log for Unix PuTTY. Doesn't yet allow X selection of its
[PuTTY_svn.git] / 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 const int use_event_log = 0;           /* pterm doesn't need it */
12
13 Backend *select_backend(Config *cfg)
14 {
15     return &pty_backend;
16 }
17
18 int cfgbox(Config *cfg)
19 {
20     return 1;                          /* no-op in pterm */
21 }
22
23 void cleanup_exit(int code)
24 {
25     exit(code);
26 }
27
28 int process_nonoption_arg(char *arg, Config *cfg)
29 {
30     return 0;                          /* pterm doesn't have any. */
31 }
32
33 char *make_default_wintitle(char *hostname)
34 {
35     return dupstr("pterm");
36 }
37
38 int main(int argc, char **argv)
39 {
40     extern int pt_main(int argc, char **argv);
41     extern void pty_pre_init(void);    /* declared in pty.c */
42
43     cmdline_tooltype = TOOLTYPE_NONNETWORK;
44
45     pty_pre_init();
46
47     return pt_main(argc, argv);
48 }