ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.174 by root, Wed Jul 5 22:46:14 2006 UTC vs.
Revision 1.175 by root, Sat Jan 20 00:37:13 2007 UTC

1313 else 1313 else
1314#endif 1314#endif
1315 if (!pty->get ()) 1315 if (!pty->get ())
1316 rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); 1316 rxvt_fatal ("can't initialize pseudo-tty, aborting.\n");
1317 1317
1318 pty->set_utf8_mode (enc_utf8);
1319
1320 /* set initial window size */
1321 tt_winch ();
1322
1323 int er; 1318 int er;
1324 1319
1325#ifndef NO_BACKSPACE_KEY 1320#ifndef NO_BACKSPACE_KEY
1326 if (key_backspace[0] && !key_backspace[1]) 1321 if (key_backspace[0] && !key_backspace[1])
1327 er = key_backspace[0]; 1322 er = key_backspace[0];
1330 else 1325 else
1331#endif 1326#endif
1332 er = -1; 1327 er = -1;
1333 1328
1334 rxvt_get_ttymode (&tio, er); 1329 rxvt_get_ttymode (&tio, er);
1330 pty->set_utf8_mode (enc_utf8);
1331 SET_TTYMODE (STDIN_FILENO, &tio); /* init terminal attributes */
1332
1333 /* set initial window size */
1334 tt_winch ();
1335 1335
1336#if ENABLE_FRILLS 1336#if ENABLE_FRILLS
1337 if (rs[Rs_pty_fd]) 1337 if (rs[Rs_pty_fd])
1338 return; 1338 return;
1339#endif 1339#endif
1393 */ 1393 */
1394int 1394int
1395rxvt_term::run_child (const char *const *argv) 1395rxvt_term::run_child (const char *const *argv)
1396{ 1396{
1397 char *login; 1397 char *login;
1398
1399 SET_TTYMODE (STDIN_FILENO, &tio); /* init terminal attributes */
1400 1398
1401 if (OPTION (Opt_console)) 1399 if (OPTION (Opt_console))
1402 { /* be virtual console, fail silently */ 1400 { /* be virtual console, fail silently */
1403#ifdef TIOCCONS 1401#ifdef TIOCCONS
1404 unsigned int on = 1; 1402 unsigned int on = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines