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.499 by root, Wed Nov 16 20:15:45 2011 UTC vs.
Revision 1.500 by sf-exg, Thu Nov 24 11:28:51 2011 UTC

776 } 776 }
777 777
778 if (newlen) 778 if (newlen)
779 len = strlen (kbuf); 779 len = strlen (kbuf);
780 780
781 if (len > 0)
782 {
781 /* 783 /*
782 * Pass meta for all function keys, if 'meta' option set 784 * Pass meta for all function keys, if 'meta' option set
783 */ 785 */
784#ifdef META8_OPTION 786#ifdef META8_OPTION
785 if (meta && (meta_char == 0x80) && len > 0) 787 if (meta && (meta_char == 0x80))
786 kbuf[len - 1] |= 0x80; 788 kbuf[len - 1] |= 0x80;
787#endif 789#endif
790
791 /*
792 * pass Shift/Control indicators for function keys ending with `~'
793 *
794 * eg,
795 * Prior = "ESC[5~"
796 * Shift+Prior = "ESC[5$"
797 * Ctrl+Prior = "ESC[5^"
798 * Ctrl+Shift+Prior = "ESC[5@"
799 */
800 if (kbuf[0] == C0_ESC && kbuf[1] == '[' && kbuf[len - 1] == '~')
801 kbuf[len - 1] = (shft ? (ctrl ? '@' : '$') : (ctrl ? '^' : '~'));
802 }
788 803
789 } 804 }
790 else if (ctrl && keysym == XK_minus) 805 else if (ctrl && keysym == XK_minus)
791 { 806 {
792 len = 1; 807 len = 1;
825 if (view_start) 840 if (view_start)
826 { 841 {
827 view_start = 0; 842 view_start = 0;
828 want_refresh = 1; 843 want_refresh = 1;
829 } 844 }
830
831 /*
832 * these modifications only affect the static keybuffer
833 * pass Shift/Control indicators for function keys ending with `~'
834 *
835 * eg,
836 * Prior = "ESC[5~"
837 * Shift+Prior = "ESC[5$"
838 * Ctrl+Prior = "ESC[5^"
839 * Ctrl+Shift+Prior = "ESC[5@"
840 * Meta adds an Escape prefix (with META8_OPTION, if meta == <escape>).
841 */
842 if (kbuf[0] == C0_ESC && kbuf[1] == '[' && kbuf[len - 1] == '~')
843 kbuf[len - 1] = (shft ? (ctrl ? '@' : '$') : (ctrl ? '^' : '~'));
844 845
845 /* escape prefix */ 846 /* escape prefix */
846 if (meta 847 if (meta
847#ifdef META8_OPTION 848#ifdef META8_OPTION
848 && meta_char == C0_ESC 849 && meta_char == C0_ESC

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines