… | |
… | |
3767 | &nitems, &bytes_after, &value) == Success |
3767 | &nitems, &bytes_after, &value) == Success |
3768 | && actual_type != None |
3768 | && actual_type != None |
3769 | && actual_format == 8) |
3769 | && actual_format == 8) |
3770 | str = (const char *)(value); |
3770 | str = (const char *)(value); |
3771 | |
3771 | |
3772 | tt_printf ("\033]%d;%s%c", XTerm_property, str, resp); |
3772 | tt_printf ("\033]%d;%s%c", op, str, resp); |
3773 | |
3773 | |
3774 | XFree (value); |
3774 | XFree (value); |
3775 | } |
3775 | } |
3776 | else |
3776 | else |
3777 | { |
3777 | { |
… | |
… | |
3805 | |
3805 | |
3806 | if (name[0] == '?' && !name[1]) |
3806 | if (name[0] == '?' && !name[1]) |
3807 | { |
3807 | { |
3808 | unsigned short r, g, b; |
3808 | unsigned short r, g, b; |
3809 | pix_colors_focused[color].get (this, r, g, b); |
3809 | pix_colors_focused[color].get (this, r, g, b); |
3810 | tt_printf ("\033]%d;%d;rgb:%04x/%04x/%04x%c", XTerm_Color, color, r, g, b, resp); |
3810 | tt_printf ("\033]%d;%d;rgb:%04x/%04x/%04x%c", op, color, r, g, b, resp); |
3811 | } |
3811 | } |
3812 | else |
3812 | else |
3813 | set_window_color (color, name); |
3813 | set_window_color (color, name); |
3814 | } |
3814 | } |
3815 | break; |
3815 | break; |
3816 | case XTerm_Color00: |
3816 | case XTerm_Color00: |
3817 | process_color_seq (XTerm_Color00, Color_fg, str, resp); |
3817 | process_color_seq (op, Color_fg, str, resp); |
3818 | break; |
3818 | break; |
3819 | case XTerm_Color01: |
3819 | case XTerm_Color01: |
3820 | process_color_seq (XTerm_Color01, Color_bg, str, resp); |
3820 | process_color_seq (op, Color_bg, str, resp); |
3821 | break; |
3821 | break; |
3822 | #ifndef NO_CURSORCOLOR |
3822 | #ifndef NO_CURSORCOLOR |
3823 | case XTerm_Color_cursor: |
3823 | case XTerm_Color_cursor: |
3824 | process_color_seq (XTerm_Color_cursor, Color_cursor, str, resp); |
3824 | process_color_seq (op, Color_cursor, str, resp); |
3825 | break; |
3825 | break; |
3826 | #endif |
3826 | #endif |
3827 | case XTerm_Color_pointer_fg: |
3827 | case XTerm_Color_pointer_fg: |
3828 | process_color_seq (XTerm_Color_pointer_fg, Color_pointer_fg, str, resp); |
3828 | process_color_seq (op, Color_pointer_fg, str, resp); |
3829 | break; |
3829 | break; |
3830 | case XTerm_Color_pointer_bg: |
3830 | case XTerm_Color_pointer_bg: |
3831 | process_color_seq (XTerm_Color_pointer_bg, Color_pointer_bg, str, resp); |
3831 | process_color_seq (op, Color_pointer_bg, str, resp); |
3832 | break; |
3832 | break; |
3833 | #ifndef NO_BOLD_UNDERLINE_REVERSE |
3833 | #ifndef NO_BOLD_UNDERLINE_REVERSE |
3834 | case XTerm_Color_RV: |
3834 | case XTerm_Color_RV: |
3835 | process_color_seq (XTerm_Color_RV, Color_RV, str, resp); |
3835 | process_color_seq (op, Color_RV, str, resp); |
3836 | break; |
3836 | break; |
3837 | case Rxvt_Color_BD: |
3837 | case Rxvt_Color_BD: |
3838 | case URxvt_Color_BD: |
3838 | case URxvt_Color_BD: |
3839 | process_color_seq (op, Color_BD, str, resp); |
3839 | process_color_seq (op, Color_BD, str, resp); |
3840 | break; |
3840 | break; |
3841 | case Rxvt_Color_UL: |
3841 | case Rxvt_Color_UL: |
3842 | case URxvt_Color_UL: |
3842 | case URxvt_Color_UL: |
3843 | process_color_seq (op, Color_UL, str, resp); |
3843 | process_color_seq (op, Color_UL, str, resp); |
3844 | break; |
3844 | break; |
3845 | case URxvt_Color_IT: |
3845 | case URxvt_Color_IT: |
3846 | process_color_seq (URxvt_Color_IT, Color_IT, str, resp); |
3846 | process_color_seq (op, Color_IT, str, resp); |
3847 | break; |
3847 | break; |
3848 | #endif |
3848 | #endif |
3849 | #if TRANSPARENT && TINTING |
3849 | #if TRANSPARENT && TINTING |
3850 | case URxvt_Color_tint: |
3850 | case URxvt_Color_tint: |
3851 | process_color_seq (URxvt_Color_tint, Color_tint, str, resp); |
3851 | process_color_seq (op, Color_tint, str, resp); |
3852 | check_our_parents (); |
3852 | check_our_parents (); |
3853 | if (am_transparent) |
3853 | if (am_transparent) |
3854 | want_full_refresh = want_refresh = 1; |
3854 | want_full_refresh = want_refresh = 1; |
3855 | break; |
3855 | break; |
3856 | #endif |
3856 | #endif |
… | |
… | |
3933 | break; |
3933 | break; |
3934 | |
3934 | |
3935 | case URxvt_version: |
3935 | case URxvt_version: |
3936 | if (query) |
3936 | if (query) |
3937 | tt_printf ("\33]%d;rxvt-unicode;%-.20s;%c;%c%c", |
3937 | tt_printf ("\33]%d;rxvt-unicode;%-.20s;%c;%c%c", |
3938 | URxvt_version, |
3938 | op, |
3939 | rs[Rs_name], |
|
|
3940 | VERSION[0], VERSION[2], |
3939 | rs[Rs_name], VERSION[0], VERSION[2], |
3941 | resp); |
3940 | resp); |
3942 | break; |
3941 | break; |
3943 | |
3942 | |
3944 | #if ENABLE_FRILLS |
3943 | #if ENABLE_FRILLS |
3945 | case URxvt_locale: |
3944 | case URxvt_locale: |
3946 | if (query) |
3945 | if (query) |
3947 | tt_printf ("\33]%d;%-.250s%c", URxvt_locale, OPTION (Opt_insecure) ? locale : "", resp); |
3946 | tt_printf ("\33]%d;%-.250s%c", op, OPTION (Opt_insecure) ? locale : "", resp); |
3948 | else |
3947 | else |
3949 | { |
3948 | { |
3950 | set_locale (str); |
3949 | set_locale (str); |
3951 | pty->set_utf8_mode (enc_utf8); |
3950 | pty->set_utf8_mode (enc_utf8); |
3952 | init_xlocale (); |
3951 | init_xlocale (); |