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.200 by root, Sun Feb 20 19:45:30 2005 UTC vs.
Revision 1.201 by root, Mon Feb 21 19:26:07 2005 UTC

3666 set_window_color (color, str); 3666 set_window_color (color, str);
3667} 3667}
3668 3668
3669/* 3669/*
3670 * XTerm escape sequences: ESC ] Ps;Pt (ST|BEL) 3670 * XTerm escape sequences: ESC ] Ps;Pt (ST|BEL)
3671 * 0 = change iconName/title
3672 * 1 = change iconName
3673 * 2 = change title
3674 * 4 = change color
3675 * 10 = change fg color
3676 * 11 = change bg color
3677 * 12 = change text color
3678 * 13 = change mouse foreground color
3679 * 17 = change highlight character colour
3680 * 18 = change bold character color
3681 * 19 = change underlined character color
3682 * 46 = change logfile (not implemented)
3683 * 50 = change font
3684 *
3685 * rxvt extensions:
3686 * 20 = bg pixmap
3687 * 39 = change default fg color
3688 * 49 = change default bg color
3689 * 55 = dump scrollback buffer and all of screen
3690 * 701 = change locale
3691 * 702 = find font
3692 * 703 = menu
3693 */ 3671 */
3694void 3672void
3695rxvt_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)
3696{ 3674{
3697 int changed = 0; 3675 int changed = 0;
3796 break; 3774 break;
3797#ifndef NO_BOLD_UNDERLINE_REVERSE 3775#ifndef NO_BOLD_UNDERLINE_REVERSE
3798 case XTerm_Color_BD: 3776 case XTerm_Color_BD:
3799 process_color_seq (XTerm_Color_BD, Color_BD, str, resp); 3777 process_color_seq (XTerm_Color_BD, Color_BD, str, resp);
3800 break; 3778 break;
3801 case XTerm_Color_IT:
3802 process_color_seq (XTerm_Color_IT, Color_IT, str, resp);
3803 break;
3804 case XTerm_Color_UL: 3779 case XTerm_Color_UL:
3805 process_color_seq (XTerm_Color_UL, Color_UL, str, resp); 3780 process_color_seq (XTerm_Color_UL, Color_UL, str, resp);
3806 break; 3781 break;
3807 case XTerm_Color_RV: 3782 case XTerm_Color_RV:
3808 process_color_seq (XTerm_Color_RV, Color_RV, str, resp); 3783 process_color_seq (XTerm_Color_RV, Color_RV, str, resp);
3809 break; 3784 break;
3785 case URxvt_Color_IT:
3786 process_color_seq (URxvt_Color_IT, Color_IT, str, resp);
3787 break;
3810#endif 3788#endif
3811#if TRANSPARENT && TINTING 3789#if TRANSPARENT && TINTING
3812 case XTerm_Color_tint: 3790 case URxvt_Color_tint:
3813 process_color_seq (XTerm_Color_tint, Color_tint, str, resp); 3791 process_color_seq (URxvt_Color_tint, Color_tint, str, resp);
3814 check_our_parents (); 3792 check_our_parents ();
3815 if (am_transparent) 3793 if (am_transparent)
3816 want_full_refresh = want_refresh = 1; 3794 want_full_refresh = want_refresh = 1;
3817 break; 3795 break;
3818#endif 3796#endif
3852 3830
3853 case XTerm_logfile: 3831 case XTerm_logfile:
3854 // TODO, when secure mode? 3832 // TODO, when secure mode?
3855 break; 3833 break;
3856 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
3857 case XTerm_font: 3853 case XTerm_font:
3858 op = URxvt_font; 3854 op = URxvt_font;
3859 case URxvt_font: 3855 case URxvt_font:
3860#if ENABLE_STYLES 3856#if ENABLE_STYLES
3861 case URxvt_boldFont: 3857 case URxvt_boldFont:
3876 set_fonts (); 3872 set_fonts ();
3877 } 3873 }
3878 break; 3874 break;
3879 3875
3880#if ENABLE_FRILLS 3876#if ENABLE_FRILLS
3881 case XTerm_locale: 3877 case URxvt_locale:
3882 if (query) 3878 if (query)
3883 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);
3884 else 3880 else
3885 { 3881 {
3886 set_locale (str); 3882 set_locale (str);
3887 pty.set_utf8_mode (enc_utf8); 3883 pty.set_utf8_mode (enc_utf8);
3888 init_xlocale (); 3884 init_xlocale ();
3889 } 3885 }
3890 break; 3886 break;
3891#endif
3892 3887
3893#ifdef MENUBAR 3888 case URxvt_view_up:
3894 case XTerm_Menu: 3889 case URxvt_view_down:
3895 if (options & Opt_insecure) 3890 int lines = atoi (str);
3896 menubar_dispatch (const_cast<char *>(str)); // casting away constness is checked 3891
3897 break; 3892 if (lines)
3898#endif 3893 scr_page (op == URxvt_view_up ? UP : DN, lines);
3899#if 0
3900 case XTerm_dumpscreen: /* no error notices */
3901 { 3894 else
3902 int fd;
3903 if ((fd = open (str, O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0)
3904 { 3895 {
3905 scr_dump (fd); 3896 scr_erase_savelines ();
3906 close (fd);
3907 } 3897 }
3908 } 3898
3909 break; 3899 break;
3910#endif 3900#endif
3911 } 3901 }
3912} 3902}
3913/*----------------------------------------------------------------------*/ 3903/*----------------------------------------------------------------------*/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines