Lines Matching refs:km
84 struct keymap *km;
86 SLIST_FOREACH(km, &head, entries)
87 if (!strcmp(km->keym, key))
88 return km;
99 struct keymap *km;
102 SLIST_FOREACH(km, &head, entries)
114 struct keymap *km;
116 SLIST_FOREACH(km, &head, entries) {
117 if (!strcmp(keym, km->keym)) {
118 SLIST_REMOVE(&head, km, keymap, entries);
119 free(km);
131 struct keymap *km, *km_new;
134 SLIST_FOREACH(km, &head, entries) {
135 if (!strcmp(km->keym, keym)) {
137 free(km->desc);
138 km->desc = strdup(desc);
139 km->mark = mark;
310 do_kbdcontrol(struct keymap *km)
313 asprintf(&kbd_cmd, "kbdcontrol -l %s/%s", dir, km->keym);
318 fprintf(stderr, "keymap=\"%s\"\n", km->keym);
326 do_vidfont(struct keymap *km)
330 asprintf(&vid_cmd, "%s/%s", dir, km->keym);
334 tmp = strdup(km->keym);
341 printf("font%s=%s\n", p, km->keym);
502 char *km = km_sorted[i]->desc;
503 if ((p = strstr(km, "8x8")) != NULL) {
508 offset = p - km;
511 len = strlen(km);
512 km = realloc(km, len + 2);
515 km[j + 1] = km[j];
517 km[offset+2] = '0';
519 km_sorted[i]->desc = km;
534 char *km = km_sorted[i]->desc;
535 if ((p = strstr(km, "8x08")) != NULL) {
540 km = realloc(km, p - km - 1);
541 km_sorted[i]->desc = km;
585 struct keymap *km;
681 km = get_keymap(keym);
682 mark = (km) ? km->mark : 0;
710 km = get_keymap("TITLE");
711 if (km)
713 title = strdup(km->desc);
714 km = get_keymap("MENU");
715 if (km)
717 menu = strdup(km->desc);
718 km = get_keymap("FONT");
719 if (km)
721 font = strdup(km->desc);
764 SLIST_FOREACH(km, &head, entries)
765 km_sorted[items++] = km;