ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.C
(Generate patch)

Comparing rxvt-unicode/src/keyboard.C (file contents):
Revision 1.63 by root, Sat Apr 26 20:51:12 2014 UTC vs.
Revision 1.64 by sf-exg, Tue Apr 29 13:10:06 2014 UTC

142 if (char *colon = strchr (str, ':')) 142 if (char *colon = strchr (str, ':'))
143 { 143 {
144 if (strncmp (str, "command:", 8) == 0) 144 if (strncmp (str, "command:", 8) == 0)
145 term->cmdbuf_append (str + 8, strlen (str) - 8); 145 term->cmdbuf_append (str + 8, strlen (str) - 8);
146 else if (strncmp (str, "string:", 7) == 0) 146 else if (strncmp (str, "string:", 7) == 0)
147 term->tt_write (colon + 1, strlen (colon + 1)); 147 term->tt_write_user_input (colon + 1, strlen (colon + 1));
148 else if (strncmp (str, "perl:", 8) == 0) 148 else if (strncmp (str, "perl:", 8) == 0)
149 HOOK_INVOKE ((term, HOOK_USER_COMMAND, DT_STR, colon + 1, DT_END)); 149 HOOK_INVOKE ((term, HOOK_USER_COMMAND, DT_STR, colon + 1, DT_END));
150 else 150 else
151 HOOK_INVOKE ((term, HOOK_KEYBOARD_DISPATCH, DT_STR_LEN, str, colon - str, DT_STR, colon + 1, DT_END)); 151 HOOK_INVOKE ((term, HOOK_KEYBOARD_DISPATCH, DT_STR_LEN, str, colon - str, DT_STR, colon + 1, DT_END));
152 } 152 }
153 else 153 else
154 term->tt_write (str, strlen (str)); 154 term->tt_write_user_input (str, strlen (str));
155 155
156 free (str); 156 free (str);
157 157
158 return true; 158 return true;
159 } 159 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines