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.231 by ayin, Tue Dec 18 12:04:50 2007 UTC vs.
Revision 1.234 by ayin, Fri Dec 28 14:57:04 2007 UTC

281 }; 281 };
282 282
283void 283void
284rxvt_term::init_vars () 284rxvt_term::init_vars ()
285{ 285{
286 pix_colors = // 286 pix_colors = pix_colors_focused;
287 pix_colors_focused = new rxvt_color [TOTAL_COLORS];
288#ifdef OFF_FOCUS_FADING
289 pix_colors_unfocused = new rxvt_color [TOTAL_COLORS];
290#endif
291 287
292 MEvent.time = CurrentTime; 288 MEvent.time = CurrentTime;
293 MEvent.button = AnyButton; 289 MEvent.button = AnyButton;
294 want_refresh = 1; 290 want_refresh = 1;
295 priv_modes = SavedModes = PrivMode_Default; 291 priv_modes = SavedModes = PrivMode_Default;
412 if (rs[Rs_depth]) 408 if (rs[Rs_depth])
413 select_visual (strtol (rs[Rs_depth], 0, 0)); 409 select_visual (strtol (rs[Rs_depth], 0, 0));
414#endif 410#endif
415 411
416#ifdef HAVE_AFTERIMAGE 412#ifdef HAVE_AFTERIMAGE
413 set_application_name ((char*)rs[Rs_name]);
414 set_output_threshold (OUTPUT_LEVEL_WARNING);
417 asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); 415 asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL);
418#endif 416#endif
419 free (r_argv); 417 free (r_argv);
420 418
421 for (int i = NUM_RESOURCES; i--; ) 419 for (int i = NUM_RESOURCES; i--; )
1144rxvt_get_ttymode (ttymode_t *tio, int erase) 1142rxvt_get_ttymode (ttymode_t *tio, int erase)
1145{ 1143{
1146 /* 1144 /*
1147 * standard System V termios interface 1145 * standard System V termios interface
1148 */ 1146 */
1149 if (GET_TERMIOS (STDIN_FILENO, tio) < 0) 1147 if (tcgetattr (STDIN_FILENO, tio) < 0)
1150 { 1148 {
1151 // return error - use system defaults, 1149 // return error - use system defaults,
1152 // where possible, and zero elsewhere 1150 // where possible, and zero elsewhere
1153 memset (tio, 0, sizeof (ttymode_t)); 1151 memset (tio, 0, sizeof (ttymode_t));
1154 1152
1337 else 1335 else
1338#endif 1336#endif
1339 er = -1; 1337 er = -1;
1340 1338
1341 rxvt_get_ttymode (&tio, er); 1339 rxvt_get_ttymode (&tio, er);
1342 SET_TERMIOS (pty->tty, &tio); /* init terminal attributes */ 1340 /* init terminal attributes */
1341 cfsetospeed (&tio, BAUDRATE);
1342 cfsetispeed (&tio, BAUDRATE);
1343 tcsetattr (pty->tty, TCSANOW, &tio);
1343 pty->set_utf8_mode (enc_utf8); 1344 pty->set_utf8_mode (enc_utf8);
1344 1345
1345 /* set initial window size */ 1346 /* set initial window size */
1346 tt_winch (); 1347 tt_winch ();
1347 1348

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines