Lines Matching defs:km
80 struct keymap *km;
82 SLIST_FOREACH(km, &head, entries)
83 if (!strcmp(km->keym, key))
84 return km;
95 struct keymap *km;
98 SLIST_FOREACH(km, &head, entries)
110 struct keymap *km;
112 SLIST_FOREACH(km, &head, entries) {
113 if (!strcmp(keym, km->keym)) {
114 SLIST_REMOVE(&head, km, keymap, entries);
115 free(km);
127 struct keymap *km, *km_new;
130 SLIST_FOREACH(km, &head, entries) {
131 if (!strcmp(km->keym, keym)) {
133 free(km->desc);
134 km->desc = strdup(desc);
135 km->mark = mark;
301 do_kbdcontrol(struct keymap *km)
304 asprintf(&kbd_cmd, "kbdcontrol -l %s/%s", dir, km->keym);
309 fprintf(stderr, "keymap=\"%s\"\n", km->keym);
317 do_vidfont(struct keymap *km)
321 asprintf(&vid_cmd, "%s/%s", dir, km->keym);
325 tmp = strdup(km->keym);
332 printf("font%s=%s\n", p, km->keym);
493 char *km = km_sorted[i]->desc;
494 if ((p = strstr(km, "8x8")) != NULL) {
499 offset = p - km;
502 len = strlen(km);
503 km = realloc(km, len + 2);
506 km[j + 1] = km[j];
508 km[offset+2] = '0';
510 km_sorted[i]->desc = km;
525 char *km = km_sorted[i]->desc;
526 if ((p = strstr(km, "8x08")) != NULL) {
531 km = realloc(km, p - km - 1);
532 km_sorted[i]->desc = km;
576 struct keymap *km;
671 km = get_keymap(keym);
672 mark = (km) ? km->mark : 0;
700 km = get_keymap("MENU");
701 if (km)
703 menu = strdup(km->desc);
704 km = get_keymap("FONT");
705 if (km)
707 font = strdup(km->desc);
749 SLIST_FOREACH(km, &head, entries)
750 km_sorted[items++] = km;