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