From: root Date: Sat, 20 Jan 2007 00:37:13 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6e3411a42bdce0412181ad500399ec4dba742ff6;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/init.C b/src/init.C index a4109cf2..40b00c22 100644 --- a/src/init.C +++ b/src/init.C @@ -1315,11 +1315,6 @@ rxvt_term::run_command (const char *const *argv) if (!pty->get ()) rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); - pty->set_utf8_mode (enc_utf8); - - /* set initial window size */ - tt_winch (); - int er; #ifndef NO_BACKSPACE_KEY @@ -1332,6 +1327,11 @@ rxvt_term::run_command (const char *const *argv) er = -1; rxvt_get_ttymode (&tio, er); + pty->set_utf8_mode (enc_utf8); + SET_TTYMODE (STDIN_FILENO, &tio); /* init terminal attributes */ + + /* set initial window size */ + tt_winch (); #if ENABLE_FRILLS if (rs[Rs_pty_fd]) @@ -1396,8 +1396,6 @@ rxvt_term::run_child (const char *const *argv) { char *login; - SET_TTYMODE (STDIN_FILENO, &tio); /* init terminal attributes */ - if (OPTION (Opt_console)) { /* be virtual console, fail silently */ #ifdef TIOCCONS