aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-28 07:03:32 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-28 07:03:32 +0000
commit86785004baf4086816b5d6684b9d0e4c56b58ea6 (patch)
tree822c8656bcf8c550a62c5bd00cb072f92542b48a /server.c
parent2da48644837cd51cfe5a9628140866f06e049e50 (diff)
downloadrtmux-86785004baf4086816b5d6684b9d0e4c56b58ea6.tar.gz
rtmux-86785004baf4086816b5d6684b9d0e4c56b58ea6.tar.bz2
rtmux-86785004baf4086816b5d6684b9d0e4c56b58ea6.zip
Next step towards customisable mode keys: build each default table of keys into
a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the the mode key bindings (new -t argument).
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.c b/server.c
index ce793076..668a8251 100644
--- a/server.c
+++ b/server.c
@@ -160,6 +160,7 @@ server_start(char *path)
ARRAY_INIT(&windows);
ARRAY_INIT(&clients);
ARRAY_INIT(&sessions);
+ mode_key_init_trees();
key_bindings_init();
utf8_build();
@@ -379,6 +380,7 @@ server_main(int srv_fd)
}
ARRAY_FREE(&clients);
+ mode_key_free_trees();
key_bindings_free();
close(srv_fd);