Lines Matching defs:key
959 static unsigned char (*x_tab)[X_TABSZ]; /* key definition */
969 static char *macroptr; /* bind key macro active? */
1314 /* avoid bind key macro recursion */
2384 /* special VT100 style key sequence hack */
2414 * - 5 (Ctrl key combiner) or 3 (Alt key combiner)
2415 * We can now accept one more octet designating the key.
2462 x_bind_showone(int prefix, int key)
2464 unsigned char f = XFUNC_VALUE(x_tab[prefix][key]);
2486 x_bind_show_ch(key);
2488 if (x_tab[prefix][key] & 0x80)
2497 const unsigned char *cp = (const void *)x_atab[prefix][key];
2525 int prefix, key;
2528 for (key = 0; key < X_TABSZ; key++)
2529 switch (XFUNC_VALUE(x_tab[prefix][key])) {
2534 x_bind_showone(prefix, key);
2571 int prefix, key;
2581 bi_errorf("no key to bind");
2584 key = c & 0xFF;
2587 x_bind_showone(prefix, key);
2590 switch (XFUNC_VALUE(x_tab[prefix][key])) {
2601 key = c & 0xFF;
2610 bi_errorf("too long key sequence: %s", s);
2638 if (XFUNC_VALUE(x_tab[prefix][key]) == XFUNC_ins_string)
2639 afree(x_atab[prefix][key], AEDIT);
2640 x_atab[prefix][key] = ms;
2644 x_tab[prefix][key] = c;
2648 x_bound[(prefix * X_TABSZ + key) / 8] &=
2649 ~(1 << ((prefix * X_TABSZ + key) % 8));
2651 x_bound[(prefix * X_TABSZ + key) / 8] |=
2652 (1 << ((prefix * X_TABSZ + key) % 8));
2663 * Has user already bound this key?