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.173 by root, Wed Jul 5 20:31:48 2006 UTC vs.
Revision 1.176 by root, Sat Jan 20 00:40:23 2007 UTC

748 alias_color (Color_topShadow, Color_White); 748 alias_color (Color_topShadow, Color_White);
749 } 749 }
750#endif /* KEEP_SCROLLCOLOR */ 750#endif /* KEEP_SCROLLCOLOR */
751 751
752#ifdef OFF_FOCUS_FADING 752#ifdef OFF_FOCUS_FADING
753 if (rs[Rs_fade])
754 for (i = 0; i < (depth <= 2 ? 2 : NRS_COLORS); i++) 753 for (i = 0; i < (depth <= 2 ? 2 : NRS_COLORS); i++)
755 { 754 update_fade_color (i);
756 rgba c;
757 pix_colors [Color_fade].get (c);
758 pix_colors_focused [i].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused[i],c);
759 }
760#endif 755#endif
761} 756}
762 757
763/*----------------------------------------------------------------------*/ 758/*----------------------------------------------------------------------*/
764/* color aliases, fg/bg bright-bold */ 759/* color aliases, fg/bg bright-bold */
1318 else 1313 else
1319#endif 1314#endif
1320 if (!pty->get ()) 1315 if (!pty->get ())
1321 rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); 1316 rxvt_fatal ("can't initialize pseudo-tty, aborting.\n");
1322 1317
1323 pty->set_utf8_mode (enc_utf8);
1324
1325 /* set initial window size */
1326 tt_winch ();
1327
1328 int er; 1318 int er;
1329 1319
1330#ifndef NO_BACKSPACE_KEY 1320#ifndef NO_BACKSPACE_KEY
1331 if (key_backspace[0] && !key_backspace[1]) 1321 if (key_backspace[0] && !key_backspace[1])
1332 er = key_backspace[0]; 1322 er = key_backspace[0];
1335 else 1325 else
1336#endif 1326#endif
1337 er = -1; 1327 er = -1;
1338 1328
1339 rxvt_get_ttymode (&tio, er); 1329 rxvt_get_ttymode (&tio, er);
1330 pty->set_utf8_mode (enc_utf8);
1331 SET_TTYMODE (pty->tty, &tio); /* init terminal attributes */
1332
1333 /* set initial window size */
1334 tt_winch ();
1340 1335
1341#if ENABLE_FRILLS 1336#if ENABLE_FRILLS
1342 if (rs[Rs_pty_fd]) 1337 if (rs[Rs_pty_fd])
1343 return; 1338 return;
1344#endif 1339#endif
1398 */ 1393 */
1399int 1394int
1400rxvt_term::run_child (const char *const *argv) 1395rxvt_term::run_child (const char *const *argv)
1401{ 1396{
1402 char *login; 1397 char *login;
1403
1404 SET_TTYMODE (STDIN_FILENO, &tio); /* init terminal attributes */
1405 1398
1406 if (OPTION (Opt_console)) 1399 if (OPTION (Opt_console))
1407 { /* be virtual console, fail silently */ 1400 { /* be virtual console, fail silently */
1408#ifdef TIOCCONS 1401#ifdef TIOCCONS
1409 unsigned int on = 1; 1402 unsigned int on = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines