… | |
… | |
485 | # else |
485 | # else |
486 | rs[Rs_delete_key] = "\033[3~"; |
486 | rs[Rs_delete_key] = "\033[3~"; |
487 | # endif |
487 | # endif |
488 | #endif |
488 | #endif |
489 | |
489 | |
490 | setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], rs[Rs_scrollBar_thickness]); |
490 | scrollBar.setup (this); |
491 | |
491 | |
492 | #ifdef XTERM_REVERSE_VIDEO |
492 | #ifdef XTERM_REVERSE_VIDEO |
493 | /* this is how xterm implements reverseVideo */ |
493 | /* this is how xterm implements reverseVideo */ |
494 | if (option (Opt_reverseVideo)) |
494 | if (option (Opt_reverseVideo)) |
495 | { |
495 | { |
… | |
… | |
552 | #ifdef KEYSYM_RESOURCE |
552 | #ifdef KEYSYM_RESOURCE |
553 | keyboard->register_done (); |
553 | keyboard->register_done (); |
554 | #endif |
554 | #endif |
555 | |
555 | |
556 | if (option (Opt_scrollBar)) |
556 | if (option (Opt_scrollBar)) |
557 | scrollBar.setIdle (); /* set existence for size calculations */ |
557 | scrollBar.state = STATE_IDLE; /* set existence for size calculations */ |
558 | |
558 | |
559 | pty = ptytty::create (); |
559 | pty = ptytty::create (); |
560 | |
560 | |
561 | create_windows (argc, argv); |
561 | create_windows (argc, argv); |
562 | |
562 | |
… | |
… | |
567 | #if 0 |
567 | #if 0 |
568 | XSynchronize (dpy, True); |
568 | XSynchronize (dpy, True); |
569 | #endif |
569 | #endif |
570 | |
570 | |
571 | if (option (Opt_scrollBar)) |
571 | if (option (Opt_scrollBar)) |
572 | resize_scrollbar (); /* create and map scrollbar */ |
572 | scrollBar.resize (); /* create and map scrollbar */ |
573 | #ifdef HAVE_BG_PIXMAP |
573 | #ifdef HAVE_BG_PIXMAP |
574 | { |
574 | { |
575 | bgPixmap.set_target (this); |
575 | bgPixmap.set_target (this); |
576 | bgPixmap.invalidate (); |
576 | bgPixmap.invalidate (); |
577 | |
577 | |
… | |
… | |
832 | run_command (argv); |
832 | run_command (argv); |
833 | } |
833 | } |
834 | |
834 | |
835 | /*----------------------------------------------------------------------*/ |
835 | /*----------------------------------------------------------------------*/ |
836 | void |
836 | void |
837 | rxvt_term::Get_Colours () |
837 | rxvt_term::get_colours () |
838 | { |
838 | { |
839 | int i; |
839 | int i; |
840 | |
840 | |
841 | #ifdef OFF_FOCUS_FADING |
841 | #ifdef OFF_FOCUS_FADING |
842 | pix_colors = pix_colors_focused; |
842 | pix_colors = pix_colors_focused; |
… | |
… | |
1059 | Window top, parent; |
1059 | Window top, parent; |
1060 | |
1060 | |
1061 | dLocal (Display *, dpy); |
1061 | dLocal (Display *, dpy); |
1062 | |
1062 | |
1063 | /* grab colors before netscape does */ |
1063 | /* grab colors before netscape does */ |
1064 | Get_Colours (); |
1064 | get_colours (); |
1065 | |
1065 | |
1066 | if (!set_fonts ()) |
1066 | if (!set_fonts ()) |
1067 | rxvt_fatal ("unable to load base fontset, please specify a valid one using -fn, aborting.\n"); |
1067 | rxvt_fatal ("unable to load base fontset, please specify a valid one using -fn, aborting.\n"); |
1068 | |
1068 | |
1069 | parent = display->root; |
1069 | parent = display->root; |
… | |
… | |
1524 | signal (SIGTSTP, SIG_IGN); |
1524 | signal (SIGTSTP, SIG_IGN); |
1525 | signal (SIGTTIN, SIG_IGN); |
1525 | signal (SIGTTIN, SIG_IGN); |
1526 | signal (SIGTTOU, SIG_IGN); |
1526 | signal (SIGTTOU, SIG_IGN); |
1527 | #endif /* SIGTSTP */ |
1527 | #endif /* SIGTSTP */ |
1528 | |
1528 | |
1529 | // unblock signals (signals are blocked by iom.C |
|
|
1530 | sigset_t ss; |
|
|
1531 | sigemptyset (&ss); |
|
|
1532 | sigprocmask (SIG_SETMASK, &ss, 0); |
|
|
1533 | |
|
|
1534 | /* command interpreter path */ |
1529 | /* command interpreter path */ |
1535 | if (argv) |
1530 | if (argv) |
1536 | { |
1531 | { |
1537 | # ifdef DEBUG_CMD |
1532 | # ifdef DEBUG_CMD |
1538 | int i; |
1533 | int i; |