ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.199 by root, Sun Feb 20 02:00:43 2005 UTC vs.
Revision 1.201 by root, Mon Feb 21 19:26:07 2005 UTC

1330 button_release (ev.xbutton); 1330 button_release (ev.xbutton);
1331 break; 1331 break;
1332 1332
1333 case ClientMessage: 1333 case ClientMessage:
1334 if (ev.xclient.format == 32 1334 if (ev.xclient.format == 32
1335 && ev.xclient.message_type == xa[XA_WM_PROTOCOLS] 1335 && ev.xclient.message_type == xa[XA_WM_PROTOCOLS])
1336 {
1336 && ev.xclient.data.l[0] == xa[XA_WM_DELETE_WINDOW]) 1337 if (ev.xclient.data.l[0] == xa[XA_WM_DELETE_WINDOW])
1337 destroy (); 1338 destroy ();
1339#if ENABLE_EWMH
1340 else if (ev.xclient.data.l[0] == xa[XA_NET_WM_PING])
1341 XSendEvent (disp, ev.xclient.window = display->root,
1342 False, SubstructureRedirectMask | SubstructureNotifyMask,
1343 &ev);
1344#endif
1345 }
1338#if ENABLE_XEMBED 1346#if ENABLE_XEMBED
1339 else if (ev.xclient.format == 32 1347 else if (ev.xclient.format == 32 && ev.xclient.message_type == xa[XA_XEMBED])
1340 && ev.xclient.message_type == xa[XA_XEMBED])
1341 { 1348 {
1342 if (ev.xclient.data.l[1] == XEMBED_FOCUS_IN) 1349 if (ev.xclient.data.l[1] == XEMBED_FOCUS_IN)
1343 focus_in (); 1350 focus_in ();
1344 else if (ev.xclient.data.l[1] == XEMBED_FOCUS_OUT) 1351 else if (ev.xclient.data.l[1] == XEMBED_FOCUS_OUT)
1345 focus_out (); 1352 focus_out ();
3659 set_window_color (color, str); 3666 set_window_color (color, str);
3660} 3667}
3661 3668
3662/* 3669/*
3663 * XTerm escape sequences: ESC ] Ps;Pt (ST|BEL) 3670 * XTerm escape sequences: ESC ] Ps;Pt (ST|BEL)
3664 * 0 = change iconName/title
3665 * 1 = change iconName
3666 * 2 = change title
3667 * 4 = change color
3668 * 10 = change fg color
3669 * 11 = change bg color
3670 * 12 = change text color
3671 * 13 = change mouse foreground color
3672 * 17 = change highlight character colour
3673 * 18 = change bold character color
3674 * 19 = change underlined character color
3675 * 46 = change logfile (not implemented)
3676 * 50 = change font
3677 *
3678 * rxvt extensions:
3679 * 20 = bg pixmap
3680 * 39 = change default fg color
3681 * 49 = change default bg color
3682 * 55 = dump scrollback buffer and all of screen
3683 * 701 = change locale
3684 * 702 = find font
3685 * 703 = menu
3686 */ 3671 */
3687void 3672void
3688rxvt_term::process_xterm_seq (int op, const char *str, unsigned char resp) 3673rxvt_term::process_xterm_seq (int op, const char *str, unsigned char resp)
3689{ 3674{
3690 int changed = 0; 3675 int changed = 0;
3789 break; 3774 break;
3790#ifndef NO_BOLD_UNDERLINE_REVERSE 3775#ifndef NO_BOLD_UNDERLINE_REVERSE
3791 case XTerm_Color_BD: 3776 case XTerm_Color_BD:
3792 process_color_seq (XTerm_Color_BD, Color_BD, str, resp); 3777 process_color_seq (XTerm_Color_BD, Color_BD, str, resp);
3793 break; 3778 break;
3794 case XTerm_Color_IT:
3795 process_color_seq (XTerm_Color_IT, Color_IT, str, resp);
3796 break;
3797 case XTerm_Color_UL: 3779 case XTerm_Color_UL:
3798 process_color_seq (XTerm_Color_UL, Color_UL, str, resp); 3780 process_color_seq (XTerm_Color_UL, Color_UL, str, resp);
3799 break; 3781 break;
3800 case XTerm_Color_RV: 3782 case XTerm_Color_RV:
3801 process_color_seq (XTerm_Color_RV, Color_RV, str, resp); 3783 process_color_seq (XTerm_Color_RV, Color_RV, str, resp);
3802 break; 3784 break;
3785 case URxvt_Color_IT:
3786 process_color_seq (URxvt_Color_IT, Color_IT, str, resp);
3787 break;
3803#endif 3788#endif
3804#if TRANSPARENT && TINTING 3789#if TRANSPARENT && TINTING
3805 case XTerm_Color_tint: 3790 case URxvt_Color_tint:
3806 process_color_seq (XTerm_Color_tint, Color_tint, str, resp); 3791 process_color_seq (URxvt_Color_tint, Color_tint, str, resp);
3807 check_our_parents (); 3792 check_our_parents ();
3808 if (am_transparent) 3793 if (am_transparent)
3809 want_full_refresh = want_refresh = 1; 3794 want_full_refresh = want_refresh = 1;
3810 break; 3795 break;
3811#endif 3796#endif
3845 3830
3846 case XTerm_logfile: 3831 case XTerm_logfile:
3847 // TODO, when secure mode? 3832 // TODO, when secure mode?
3848 break; 3833 break;
3849 3834
3835#ifdef MENUBAR
3836 case URxvt_Menu:
3837 if (options & Opt_insecure)
3838 menubar_dispatch (const_cast<char *>(str)); // casting away constness is checked
3839 break;
3840#endif
3841#if 0
3842 case XTerm_dumpscreen: /* no error notices */
3843 {
3844 int fd;
3845 if ((fd = open (str, O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0)
3846 {
3847 scr_dump (fd);
3848 close (fd);
3849 }
3850 }
3851 break;
3852#endif
3850 case XTerm_font: 3853 case XTerm_font:
3851 op = URxvt_font; 3854 op = URxvt_font;
3852 case URxvt_font: 3855 case URxvt_font:
3853#if ENABLE_STYLES 3856#if ENABLE_STYLES
3854 case URxvt_boldFont: 3857 case URxvt_boldFont:
3869 set_fonts (); 3872 set_fonts ();
3870 } 3873 }
3871 break; 3874 break;
3872 3875
3873#if ENABLE_FRILLS 3876#if ENABLE_FRILLS
3874 case XTerm_locale: 3877 case URxvt_locale:
3875 if (query) 3878 if (query)
3876 tt_printf ("\33]%d;%-.250s%c", XTerm_locale, (options & Opt_insecure) ? locale : "", resp); 3879 tt_printf ("\33]%d;%-.250s%c", URxvt_locale, (options & Opt_insecure) ? locale : "", resp);
3877 else 3880 else
3878 { 3881 {
3879 set_locale (str); 3882 set_locale (str);
3880 pty.set_utf8_mode (enc_utf8); 3883 pty.set_utf8_mode (enc_utf8);
3881 init_xlocale (); 3884 init_xlocale ();
3882 } 3885 }
3883 break; 3886 break;
3884#endif
3885 3887
3886#ifdef MENUBAR 3888 case URxvt_view_up:
3887 case XTerm_Menu: 3889 case URxvt_view_down:
3888 if (options & Opt_insecure) 3890 int lines = atoi (str);
3889 menubar_dispatch (const_cast<char *>(str)); // casting away constness is checked 3891
3890 break; 3892 if (lines)
3891#endif 3893 scr_page (op == URxvt_view_up ? UP : DN, lines);
3892#if 0
3893 case XTerm_dumpscreen: /* no error notices */
3894 { 3894 else
3895 int fd;
3896 if ((fd = open (str, O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0)
3897 { 3895 {
3898 scr_dump (fd); 3896 scr_erase_savelines ();
3899 close (fd);
3900 } 3897 }
3901 } 3898
3902 break; 3899 break;
3903#endif 3900#endif
3904 } 3901 }
3905} 3902}
3906/*----------------------------------------------------------------------*/ 3903/*----------------------------------------------------------------------*/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines