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.270 by root, Wed Jan 18 10:31:37 2006 UTC vs.
Revision 1.271 by root, Wed Jan 18 17:49:46 2006 UTC

3766 * XTerm escape sequences: ESC ] Ps;Pt (ST|BEL) 3766 * XTerm escape sequences: ESC ] Ps;Pt (ST|BEL)
3767 */ 3767 */
3768void 3768void
3769rxvt_term::process_xterm_seq (int op, const char *str, char resp) 3769rxvt_term::process_xterm_seq (int op, const char *str, char resp)
3770{ 3770{
3771 int changed = 0;
3772 int color; 3771 int color;
3773 char *buf, *name; 3772 char *buf, *name;
3774 bool query = str[0] == '?' && !str[1]; 3773 bool query = str[0] == '?' && !str[1];
3775 int saveop = op; 3774 int saveop = op;
3776 dDisp; 3775 dDisp;
3892 want_full_refresh = want_refresh = 1; 3891 want_full_refresh = want_refresh = 1;
3893 break; 3892 break;
3894#endif 3893#endif
3895 3894
3896 case Rxvt_Pixmap: 3895 case Rxvt_Pixmap:
3896 {
3897 if (*str != ';') 3897 if (*str != ';')
3898 { 3898 {
3899#if XPM_BACKGROUND 3899#if XPM_BACKGROUND
3900 scale_pixmap (""); /* reset to default scaling */ 3900 scale_pixmap (""); /* reset to default scaling */
3901 set_bgPixmap (str); /* change pixmap */ 3901 set_bgPixmap (str); /* change pixmap */
3902 scr_touch (true); 3902 scr_touch (true);
3903#endif 3903#endif
3904 } 3904 }
3905 3905
3906 int changed = 0;
3907
3906 while ((str = strchr (str, ';')) != NULL) 3908 while ((str = strchr (str, ';')) != NULL)
3907 { 3909 {
3908 str++; 3910 str++;
3909#if XPM_BACKGROUND 3911#if XPM_BACKGROUND
3910 changed += scale_pixmap (str); 3912 changed += scale_pixmap (str);
3911#endif 3913#endif
3912 } 3914 }
3913 3915
3914 if (changed) 3916 if (changed)
3915 { 3917 {
3916#ifdef XPM_BACKGROUND 3918#ifdef XPM_BACKGROUND
3917 resize_pixmap (); 3919 resize_pixmap ();
3918 scr_touch (true); 3920 scr_touch (true);
3919#endif 3921#endif
3920 } 3922 }
3923 }
3921 break; 3924 break;
3922 3925
3923 case Rxvt_restoreFG: 3926 case Rxvt_restoreFG:
3924 set_window_color (Color_fg, str); 3927 set_window_color (Color_fg, str);
3925 break; 3928 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines