|
|
1 | #include "../config.h" |
1 | #include "rxvtlib.h" |
2 | #include "rxvt.h" |
2 | #include "iom.h" |
|
|
3 | |
3 | |
4 | /*----------------------------------------------------------------------*/ |
4 | /*----------------------------------------------------------------------*/ |
5 | /* main () */ |
5 | /* main () */ |
6 | int |
6 | int |
7 | main (int argc, const char *const *argv) |
7 | main (int argc, const char *const *argv) |
8 | { |
8 | try |
|
|
9 | { |
9 | rxvt_init_signals (); |
10 | rxvt_init_signals (); |
10 | |
11 | |
|
|
12 | rxvt_term *t = new rxvt_term; |
|
|
13 | |
11 | if (!rxvt_init (argc, argv)) |
14 | if (!t->init (argc, argv)) |
|
|
15 | return EXIT_FAILURE; |
|
|
16 | |
|
|
17 | iom.loop (); |
|
|
18 | |
|
|
19 | return EXIT_SUCCESS; |
|
|
20 | } |
|
|
21 | catch (const class rxvt_failure_exception &e) |
|
|
22 | { |
12 | return EXIT_FAILURE; |
23 | return EXIT_FAILURE; |
13 | |
24 | } |
14 | iom.loop (); |
|
|
15 | |
|
|
16 | return EXIT_SUCCESS; |
|
|
17 | } |
|
|