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.210 by ayin, Sat Sep 8 21:25:56 2007 UTC vs.
Revision 1.212 by sasha, Wed Sep 12 21:06:08 2007 UTC

199 numpix_colors = TOTAL_COLORS; 199 numpix_colors = TOTAL_COLORS;
200 200
201 refresh_type = SLOW_REFRESH; 201 refresh_type = SLOW_REFRESH;
202 202
203 oldcursor.row = oldcursor.col = -1; 203 oldcursor.row = oldcursor.col = -1;
204#ifdef HAVE_BG_PIXMAP
205#ifdef HAVE_AFTERIMAGE
206 bgPixmap.original_asim = NULL;
207#endif
208 /* bgPixmap.w = bgPixmap.h = 0; */
209#ifdef XPM_BACKGROUND
210 bgPixmap.h_scale = bgPixmap.v_scale = 0;
211 bgPixmap.h_align = bgPixmap.v_align = 0;
212#endif
213 bgPixmap.flags = 0;
214 bgPixmap.pixmap = None;
215#endif
216 last_bot = last_state = -1; 204 last_bot = last_state = -1;
217 205
218 set_option (Opt_scrollBar); 206 set_option (Opt_scrollBar);
219 set_option (Opt_scrollTtyOutput); 207 set_option (Opt_scrollTtyOutput);
220 set_option (Opt_jumpScroll); 208 set_option (Opt_jumpScroll);
265/*----------------------------------------------------------------------*/ 253/*----------------------------------------------------------------------*/
266const char ** 254const char **
267rxvt_term::init_resources (int argc, const char *const *argv) 255rxvt_term::init_resources (int argc, const char *const *argv)
268{ 256{
269 int i, r_argc; 257 int i, r_argc;
270 char *val;
271 const char **cmd_argv, **r_argv; 258 const char **cmd_argv, **r_argv;
272 259
273 /* 260 /*
274 * Look for -e option. Find => split and make cmd_argv[] of command args 261 * Look for -e option. Find => split and make cmd_argv[] of command args
275 */ 262 */
395 rs[Rs_cutchars] = CUTCHARS; 382 rs[Rs_cutchars] = CUTCHARS;
396 383
397#ifndef NO_BACKSPACE_KEY 384#ifndef NO_BACKSPACE_KEY
398 if (!rs[Rs_backspace_key]) 385 if (!rs[Rs_backspace_key])
399# ifdef DEFAULT_BACKSPACE 386# ifdef DEFAULT_BACKSPACE
400 key_backspace = DEFAULT_BACKSPACE; 387 rs[Rs_backspace_key] = DEFAULT_BACKSPACE;
401# else 388# else
402 key_backspace = "DEC"; /* can toggle between \010 or \177 */ 389 rs[Rs_backspace_key] = "DEC"; /* can toggle between \010 or \177 */
403# endif 390# endif
404 else
405 {
406 val = strdup (rs[Rs_backspace_key]);
407 key_backspace = val;
408 }
409#endif 391#endif
410 392
411#ifndef NO_DELETE_KEY 393#ifndef NO_DELETE_KEY
412 if (!rs[Rs_delete_key]) 394 if (!rs[Rs_delete_key])
413# ifdef DEFAULT_DELETE 395# ifdef DEFAULT_DELETE
414 key_delete = DEFAULT_DELETE; 396 rs[Rs_delete_key] = DEFAULT_DELETE;
415# else 397# else
416 key_delete = "\033[3~"; 398 rs[Rs_delete_key] = "\033[3~";
417# endif 399# endif
418 else
419 {
420 val = strdup (rs[Rs_delete_key]);
421 key_delete = val;
422 }
423#endif 400#endif
424 401
425#ifdef HAVE_SCROLLBARS 402#ifdef HAVE_SCROLLBARS
426 setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], rs[Rs_scrollBar_thickness]); 403 setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], rs[Rs_scrollBar_thickness]);
427#endif 404#endif
638 priv_modes |= PrivMode_Keypress; 615 priv_modes |= PrivMode_Keypress;
639 if (!option (Opt_jumpScroll)) 616 if (!option (Opt_jumpScroll))
640 priv_modes |= PrivMode_smoothScroll; 617 priv_modes |= PrivMode_smoothScroll;
641 618
642#ifndef NO_BACKSPACE_KEY 619#ifndef NO_BACKSPACE_KEY
643 if (strcmp (key_backspace, "DEC") == 0) 620 if (strcmp (rs[Rs_backspace_key], "DEC") == 0)
644 priv_modes |= PrivMode_HaveBackSpace; 621 priv_modes |= PrivMode_HaveBackSpace;
645#endif 622#endif
646 623
647 /* add value for scrollBar */ 624 /* add value for scrollBar */
648 if (scrollBar.state) 625 if (scrollBar.state)
1251 rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); 1228 rxvt_fatal ("can't initialize pseudo-tty, aborting.\n");
1252 1229
1253 int er; 1230 int er;
1254 1231
1255#ifndef NO_BACKSPACE_KEY 1232#ifndef NO_BACKSPACE_KEY
1256 if (key_backspace[0] && !key_backspace[1]) 1233 if (rs[Rs_backspace_key][0] && !rs[Rs_backspace_key][1])
1257 er = key_backspace[0]; 1234 er = rs[Rs_backspace_key][0];
1258 else if (strcmp (key_backspace, "DEC") == 0) 1235 else if (strcmp (rs[Rs_backspace_key], "DEC") == 0)
1259 er = '\177'; /* the initial state anyway */ 1236 er = '\177'; /* the initial state anyway */
1260 else 1237 else
1261#endif 1238#endif
1262 er = -1; 1239 er = -1;
1263 1240

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines