*** empty log message ***
authorroot <root>
Sat, 20 Jan 2007 00:37:13 +0000 (00:37 +0000)
committerroot <root>
Sat, 20 Jan 2007 00:37:13 +0000 (00:37 +0000)
src/init.C

index a4109cf2c7cef403a21a667f5282b5323afbdea7..40b00c22376178440df79a2ea9566d4e393ff237 100644 (file)
@@ -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