--- rxvt-unicode/src/rxvt.C 2003/11/25 11:52:42 1.2 +++ rxvt-unicode/src/rxvt.C 2004/03/17 05:15:02 1.7 @@ -1,16 +1,24 @@ -#include "rxvtlib.h" -#include "iom.h" +#include "../config.h" +#include "rxvt.h" /*----------------------------------------------------------------------*/ -/* main() */ -/* INTPROTO */ +/* main () */ int -main(int argc, const char *const *argv) -{ - if (rxvt_init(argc, argv) == NULL) - return EXIT_FAILURE; +main (int argc, const char *const *argv) +try + { + rxvt_init_signals (); + + rxvt_term *t = new rxvt_term; + + if (!t->init (argc, argv)) + return EXIT_FAILURE; iom.loop (); return EXIT_SUCCESS; -} + } +catch (const class rxvt_failure_exception &e) + { + return EXIT_FAILURE; + }