version 1.108, 2019/04/02 09:03:39 |
version 1.109, 2019/04/23 20:40:03 |
|
|
const struct tty_default_key_raw *tdkr; |
const struct tty_default_key_raw *tdkr; |
const struct tty_default_key_code *tdkc; |
const struct tty_default_key_code *tdkc; |
u_int i; |
u_int i; |
const char *s, *value; |
const char *s; |
struct options_entry *o; |
struct options_entry *o; |
struct options_array_item *a; |
struct options_array_item *a; |
|
union options_value *ov; |
|
|
if (tty->key_tree != NULL) |
if (tty->key_tree != NULL) |
tty_keys_free(tty); |
tty_keys_free(tty); |
|
|
if (o != NULL) { |
if (o != NULL) { |
a = options_array_first(o); |
a = options_array_first(o); |
while (a != NULL) { |
while (a != NULL) { |
value = options_array_item_value(a); |
ov = options_array_item_value(a); |
if (value != NULL) |
if (ov != NULL) |
tty_keys_add(tty, value, KEYC_USER + i); |
tty_keys_add(tty, ov->string, KEYC_USER + i); |
a = options_array_next(a); |
a = options_array_next(a); |
} |
} |
} |
} |