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.233 by ayin, Fri Dec 21 16:21:06 2007 UTC vs.
Revision 1.236 by ayin, Mon Dec 31 01:05:50 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;
301 saveLines = SAVELINES; 297 saveLines = SAVELINES;
302 298
303 refresh_type = SLOW_REFRESH; 299 refresh_type = SLOW_REFRESH;
304 300
305 oldcursor.row = oldcursor.col = -1; 301 oldcursor.row = oldcursor.col = -1;
306 last_bot = last_state = -1;
307 302
308 set_option (Opt_scrollBar); 303 set_option (Opt_scrollBar);
309 set_option (Opt_scrollTtyOutput); 304 set_option (Opt_scrollTtyOutput);
310 set_option (Opt_jumpScroll); 305 set_option (Opt_jumpScroll);
311 set_option (Opt_skipScroll); 306 set_option (Opt_skipScroll);
1141 1136
1142/* ------------------------------------------------------------------------- * 1137/* ------------------------------------------------------------------------- *
1143 * GET TTY CURRENT STATE * 1138 * GET TTY CURRENT STATE *
1144 * ------------------------------------------------------------------------- */ 1139 * ------------------------------------------------------------------------- */
1145void 1140void
1146rxvt_get_ttymode (ttymode_t *tio, int erase) 1141rxvt_get_ttymode (struct termios *tio, int erase)
1147{ 1142{
1148 /* 1143 /*
1149 * standard System V termios interface 1144 * standard System V termios interface
1150 */ 1145 */
1151 if (tcgetattr (STDIN_FILENO, tio) < 0) 1146 if (tcgetattr (STDIN_FILENO, tio) < 0)
1152 { 1147 {
1153 // return error - use system defaults, 1148 // return error - use system defaults,
1154 // where possible, and zero elsewhere 1149 // where possible, and zero elsewhere
1155 memset (tio, 0, sizeof (ttymode_t)); 1150 memset (tio, 0, sizeof (struct termios));
1156 1151
1157 tio->c_cc[VINTR] = CINTR; 1152 tio->c_cc[VINTR] = CINTR;
1158 tio->c_cc[VQUIT] = CQUIT; 1153 tio->c_cc[VQUIT] = CQUIT;
1159 tio->c_cc[VERASE] = CERASE; 1154 tio->c_cc[VERASE] = CERASE;
1160#ifdef VERASE2 1155#ifdef VERASE2

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines