--- rxvt-unicode/src/rxvt.C 2007/11/24 11:06:13 1.17 +++ rxvt-unicode/src/rxvt.C 2011/12/06 11:29:52 1.22 @@ -3,7 +3,7 @@ *----------------------------------------------------------------------* * * All portions of code are copyright by their respective author/s. - * Copyright (c) 2003-2006 Marc Lehmann + * Copyright (c) 2003-2006 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ main (int argc, const char *const *argv) try { + ptytty::init (); rxvt_init (); rxvt_term *t = new rxvt_term; @@ -44,15 +45,12 @@ for (char **var = environ; *var; var++) envv->push_back (strdup (*var)); - envv->push_back (0); - - if (!t->init (args, envv)) + t->init (args, envv); #else - if (!t->init (argc, argv, 0)) + t->init (argc, argv); #endif - return EXIT_FAILURE; - ev_loop (0); + ev_run (); return EXIT_SUCCESS; }