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.232 by sasha, Tue Dec 18 15:44:55 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;
1146rxvt_get_ttymode (ttymode_t *tio, int erase) 1142rxvt_get_ttymode (ttymode_t *tio, int erase)
1147{ 1143{
1148 /* 1144 /*
1149 * standard System V termios interface 1145 * standard System V termios interface
1150 */ 1146 */
1151 if (GET_TERMIOS (STDIN_FILENO, tio) < 0) 1147 if (tcgetattr (STDIN_FILENO, tio) < 0)
1152 { 1148 {
1153 // return error - use system defaults, 1149 // return error - use system defaults,
1154 // where possible, and zero elsewhere 1150 // where possible, and zero elsewhere
1155 memset (tio, 0, sizeof (ttymode_t)); 1151 memset (tio, 0, sizeof (ttymode_t));
1156 1152
1339 else 1335 else
1340#endif 1336#endif
1341 er = -1; 1337 er = -1;
1342 1338
1343 rxvt_get_ttymode (&tio, er); 1339 rxvt_get_ttymode (&tio, er);
1344 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);
1345 pty->set_utf8_mode (enc_utf8); 1344 pty->set_utf8_mode (enc_utf8);
1346 1345
1347 /* set initial window size */ 1346 /* set initial window size */
1348 tt_winch (); 1347 tt_winch ();
1349 1348

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines