Lines Matching defs:sequence
209 * longest multi-key sequence */
214 static void add_key_sequence(SCREEN *screen, const char *sequence, int key_type);
369 * Add the sequence of characters given in sequence as the key mapping
373 add_key_sequence(SCREEN *screen, const char *sequence, int key_type)
379 __CTRACE(__CTRACE_MISC, "add_key_sequence: add key sequence: %s(%s)\n",
380 sequence, keyname(key_type));
383 length = (int)strlen(sequence);
392 * totally screwed if someone terminates a multichar sequence
400 tmp_key = add_new_key(current, sequence[j], KEYMAP_MULTI, 0);
404 key_ent = current->mapping[(unsigned char) sequence[j]];
413 * This is the last key in the sequence (it may have been the
417 tmp_key = add_new_key(current, sequence[length - 1], KEYMAP_LEAF,
419 current->key[current->mapping[(int)sequence[length - 1]]] = tmp_key;
463 "Processing terminfo entry %d, sequence ",
545 for (;;) { /* loop until we get a complete key sequence */
582 /* assembling a key sequence */
644 } else { /* must be part of a multikey sequence */
645 /* check for completed key sequence */
647 start = working; /* eat the key sequence
665 * sequence.
713 * getch will not return this keysym even if the matching key sequence
761 * Add a custom mapping of a key sequence to key symbol.
765 define_key(const char *sequence, int symbol)
771 if (sequence == NULL) {
776 add_key_sequence(_cursesi_screen, sequence, symbol);