]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - unix/ptermm.c
Various error-handling fixes, mostly in Unix PuTTY but one (failure
[PuTTY.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 Backend *select_backend(Config *cfg)
11 {
12     return &pty_backend;
13 }
14
15 int cfgbox(Config *cfg)
16 {
17     return 1;                          /* no-op in pterm */
18 }
19
20 void fatal_message_box(void *window, char *msg)
21 {
22     /* also a no-op in pterm */
23 }
24
25 void cleanup_exit(int code)
26 {
27     exit(code);
28 }
29
30 int process_nonoption_arg(char *arg, Config *cfg)
31 {
32     return 0;                          /* pterm doesn't have any. */
33 }
34
35 char *make_default_wintitle(char *hostname)
36 {
37     return dupstr("pterm");
38 }
39
40 int main(int argc, char **argv)
41 {
42     extern int pt_main(int argc, char **argv);
43     extern void pty_pre_init(void);    /* declared in pty.c */
44
45     cmdline_tooltype = TOOLTYPE_NONNETWORK;
46
47     pty_pre_init();
48
49     return pt_main(argc, argv);
50 }