… | |
… | |
74 | output_string (rxvt_term *rt, const char *str) |
74 | output_string (rxvt_term *rt, const char *str) |
75 | { |
75 | { |
76 | if (strncmp (str, "command:", 8) == 0) |
76 | if (strncmp (str, "command:", 8) == 0) |
77 | rt->cmd_write (str + 8, strlen (str) - 8); |
77 | rt->cmd_write (str + 8, strlen (str) - 8); |
78 | else if (strncmp (str, "perl:", 5) == 0) |
78 | else if (strncmp (str, "perl:", 5) == 0) |
79 | HOOK_INVOKE((rt, HOOK_KEYBOARD_COMMAND, DT_STR, str + 5, DT_END)); |
79 | HOOK_INVOKE((rt, HOOK_USER_COMMAND, DT_STR, str + 5, DT_END)); |
80 | else |
80 | else |
81 | rt->tt_write (str, strlen (str)); |
81 | rt->tt_write (str, strlen (str)); |
82 | } |
82 | } |
83 | |
83 | |
84 | static void |
84 | static void |
… | |
… | |
420 | ++hash_budget_counter [hashkey]; |
420 | ++hash_budget_counter [hashkey]; |
421 | } |
421 | } |
422 | |
422 | |
423 | keymap.swap (sorted_keymap); |
423 | keymap.swap (sorted_keymap); |
424 | |
424 | |
425 | #if defined (DEBUG_STRICT) || defined (DEBUG_KEYBOARD) |
425 | #ifdef DEBUG_STRICT |
426 | // check for invariants |
426 | // check for invariants |
427 | for (i = 0; i < KEYSYM_HASH_BUDGETS; ++i) |
427 | for (i = 0; i < KEYSYM_HASH_BUDGETS; ++i) |
428 | { |
428 | { |
429 | index = hash[i]; |
429 | index = hash[i]; |
430 | for (int j = 0; j < hash_budget_size [i]; ++j) |
430 | for (int j = 0; j < hash_budget_size [i]; ++j) |