Lines Matching defs:km
81 struct keymap *km;
83 SLIST_FOREACH(km, &head, entries)
84 if (!strcmp(km->keym, key))
85 return km;
96 struct keymap *km;
99 SLIST_FOREACH(km, &head, entries)
111 struct keymap *km;
113 SLIST_FOREACH(km, &head, entries) {
114 if (!strcmp(keym, km->keym)) {
115 SLIST_REMOVE(&head, km, keymap, entries);
116 free(km);
128 struct keymap *km, *km_new;
131 SLIST_FOREACH(km, &head, entries) {
132 if (!strcmp(km->keym, keym)) {
134 free(km->desc);
135 km->desc = strdup(desc);
136 km->mark = mark;
308 do_kbdcontrol(struct keymap *km)
311 asprintf(&kbd_cmd, "kbdcontrol -l %s/%s", dir, km->keym);
316 fprintf(stderr, "keymap=\"%s\"\n", km->keym);
324 do_vidfont(struct keymap *km)
328 asprintf(&vid_cmd, "%s/%s", dir, km->keym);
332 tmp = strdup(km->keym);
339 printf("font%s=%s\n", p, km->keym);
500 char *km = km_sorted[i]->desc;
501 if ((p = strstr(km, "8x8")) != NULL) {
506 offset = p - km;
509 len = strlen(km);
510 km = realloc(km, len + 2);
513 km[j + 1] = km[j];
515 km[offset+2] = '0';
517 km_sorted[i]->desc = km;
532 char *km = km_sorted[i]->desc;
533 if ((p = strstr(km, "8x08")) != NULL) {
538 km = realloc(km, p - km - 1);
539 km_sorted[i]->desc = km;
583 struct keymap *km;
678 km = get_keymap(keym);
679 mark = (km) ? km->mark : 0;
707 km = get_keymap("MENU");
708 if (km)
710 menu = strdup(km->desc);
711 km = get_keymap("FONT");
712 if (km)
714 font = strdup(km->desc);
756 SLIST_FOREACH(km, &head, entries)
757 km_sorted[items++] = km;