From 95ed7d48c84198da0ec4b1b9b5de9358a47da753 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 23 Jun 2017 15:36:52 +0000 Subject: Add user-keys option to allow user-defined keys to be set, from Dan Aloni. --- cmd-set-option.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd-set-option.c') diff --git a/cmd-set-option.c b/cmd-set-option.c index d8539ee7..02504d5c 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -240,6 +240,12 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) TAILQ_FOREACH(loop, &clients, entry) server_client_set_key_table(loop, NULL); } + if (strcmp(name, "user-keys") == 0) { + TAILQ_FOREACH(loop, &clients, entry) { + if (loop->tty.flags & TTY_OPENED) + tty_keys_build(&loop->tty); + } + } if (strcmp(name, "status") == 0 || strcmp(name, "status-interval") == 0) status_timer_start_all(); -- cgit v1.2.3