Lines Matching refs:key
49 * Read a key typed from the terminal
51 * interpret: = 0 for single-char key only
52 * = 1 for matching function key and macro patterns.
97 * a key that starts with -1. Also, we don't want to
184 * the list, making the access to a repeated key very fast and
192 int key, num_keys = cur_term->_ksz;
207 key = 0;
209 key = cur_term->_first_macro;
212 first = key;
214 for (; key < num_keys; key++) {
215 if (kp[key]->_sends[0] == *inp) {
218 if (kp[key]->_sends[i] == '\0')
244 * We have to decrement one because key will be
247 key = (first = blockpeek =
261 if (kp[key]->_sends[i] != inputQ[i])
266 if (kp[key]->_keyval == KEY_MOUSE) {
302 for (; kp[key]->_sends[i]; i++)
305 /* move key to top of ordered list */
306 if (key != first) {
307 _KEY_MAP *savekey = kp[key];
311 if (key > cur_term->_first_macro)
316 * If we're below the last ordered key, swap next unordered
317 * key with this one and ripple from there.
319 if (key > *lorder)
320 kp[key] = kp[(i = ++(*lorder))];
322 i = key;
333 * have to return the function key corresponding
351 /* key not found */
354 if (key == num_keys)
467 * Fast peek key. Like getchar but if the right flags are set, times out
482 * we assume there is no key waiting. Problem here is that 1 second is
601 * function key
614 /* mapped into function key */