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.286 by root, Wed Jan 25 21:09:21 2006 UTC vs.
Revision 1.290 by root, Sat Jan 28 20:41:38 2006 UTC

3278 { 3278 {
3279 case '>': 3279 case '>':
3280 if (ch == CSI_DA) /* secondary device attributes */ 3280 if (ch == CSI_DA) /* secondary device attributes */
3281 { 3281 {
3282 // first parameter is normally 0 for vt100, 1 for some newer vtxxx, 'R' for rxvt, 3282 // first parameter is normally 0 for vt100, 1 for some newer vtxxx, 'R' for rxvt,
3283 // 'U' for rxvt-unicode <= 7.2, and Mm85 (e.g. 7385 for 7.3) for later versions. 3283 // 'U' for rxvt-unicode != 7.[34] (where it was broken).
3284 // 3284 //
3285 // second parameter is xterm patch level for xterm, MMmmpp (e.g. 20703) for rxvt 3285 // second parameter is xterm patch level for xterm, MMmmpp (e.g. 20703) for rxvt
3286 // and Mm (e.g. 72 for 7.2) for urxvt <= 7.2, and 94 for later versions, to signify 3286 // and Mm (e.g. 72 for 7.2) for urxvt <= 7.2, and 94 for later versions, to signify
3287 // that we do not support xterm mouse reporting (should be 95 when we do). 3287 // that we do not support xterm mouse reporting (should be 95 when we do).
3288 // 3288 //
3289 tt_printf ("\033[>%c%c85;94;0c", VERSION[0], VERSION[1]); 3289 tt_printf ("\033[>%d;94;0c", 'U');
3290 } 3290 }
3291 break; 3291 break;
3292 case '?': 3292 case '?':
3293 if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't') 3293 if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't')
3294 process_terminal_mode (ch, priv, nargs, arg); 3294 process_terminal_mode (ch, priv, nargs, arg);
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
3930 allocated.push_back ((void *)res); 3930 allocated.push_back ((void *)res);
3931 set_fonts (); 3931 set_fonts ();
3932 } 3932 }
3933 break; 3933 break;
3934 3934
3935 case URxvt_version:
3936 if (query)
3937 tt_printf ("\33]%d;rxvt-unicode;%-.20s;%c;%c%c",
3938 op,
3939 rs[Rs_name], VERSION[0], VERSION[2],
3940 resp);
3941 break;
3942
3935#if ENABLE_FRILLS 3943#if ENABLE_FRILLS
3936 case URxvt_locale: 3944 case URxvt_locale:
3937 if (query) 3945 if (query)
3938 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);
3939 else 3947 else
3940 { 3948 {
3941 set_locale (str); 3949 set_locale (str);
3942 pty->set_utf8_mode (enc_utf8); 3950 pty->set_utf8_mode (enc_utf8);
3943 init_xlocale (); 3951 init_xlocale ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines