Make the `vtmode' config option work under X. In the process I've
[sgt/putty] / unix / ptermm.c
CommitLineData
1d009ae7 1/*
2 * pterm main program.
3 */
4
5#include <stdio.h>
3f935d5b 6#include <stdlib.h>
1d009ae7 7
8#include "putty.h"
9
47e4e735 10const char *const appname = "pterm";
8eed910d 11const int use_event_log = 0; /* pterm doesn't need it */
56801e3d 12const int new_session = 0, saved_sessions = 0; /* or these */
47e4e735 13
1d009ae7 14Backend *select_backend(Config *cfg)
15{
16 return &pty_backend;
17}
18
19int cfgbox(Config *cfg)
20{
21 return 1; /* no-op in pterm */
22}
23
3f935d5b 24void cleanup_exit(int code)
25{
26 exit(code);
27}
28
46a3419b 29int process_nonoption_arg(char *arg, Config *cfg)
30{
31 return 0; /* pterm doesn't have any. */
32}
33
10705014 34char *make_default_wintitle(char *hostname)
35{
36 return dupstr("pterm");
37}
38
1d009ae7 39int main(int argc, char **argv)
40{
41 extern int pt_main(int argc, char **argv);
42 extern void pty_pre_init(void); /* declared in pty.c */
43
46a3419b 44 cmdline_tooltype = TOOLTYPE_NONNETWORK;
45
1d009ae7 46 pty_pre_init();
47
48 return pt_main(argc, argv);
49}