|
|
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 | /* INTPROTO */ |
|
|
7 | int |
6 | int |
8 | main(int argc, const char *const *argv) |
7 | main (int argc, const char *const *argv) |
9 | { |
8 | try |
|
|
9 | { |
|
|
10 | rxvt_init_signals (); |
|
|
11 | |
|
|
12 | rxvt_term *t = new rxvt_term; |
|
|
13 | |
10 | if (rxvt_init(argc, argv) == NULL) |
14 | if (!t->init (argc, argv)) |
11 | return EXIT_FAILURE; |
15 | return EXIT_FAILURE; |
12 | |
16 | |
13 | iom.loop (); |
17 | iom.loop (); |
14 | |
18 | |
15 | return EXIT_SUCCESS; |
19 | return EXIT_SUCCESS; |
16 | } |
20 | } |
|
|
21 | catch (const class rxvt_failure_exception &e) |
|
|
22 | { |
|
|
23 | return EXIT_FAILURE; |
|
|
24 | } |