# server_client_set_key_table

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L241
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-server_client_set_key_table/

```c
void server_client_set_key_table(struct client *c, const char *name)
```

## Parameters

- `c` (`struct client *`)
- `name` (`const char *`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.7c/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-attach-session.c#L139)
- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L344)
- [`cmd_switch_client_exec`](/en/tmux/3.7c/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-switch-client.c#L160)
- [`key_bindings_remove_table`](/en/tmux/3.7c/reference/c-function-key_bindings_remove_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L304)
- [`options_push_changes`](/en/tmux/3.7c/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1211)
- [`server_client_key_callback`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_key_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1270)
- [`server_client_repeat_timer`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_repeat_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1876)

## Calls

- [`fatal`](/en/tmux/3.7c/reference/c-function-fatal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L250)
- [`key_bindings_get_table`](/en/tmux/3.7c/reference/c-function-key_bindings_get_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L247)
- [`key_bindings_unref_table`](/en/tmux/3.7c/reference/c-function-key_bindings_unref_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L246)
- [`server_client_get_key_table`](/en/tmux/3.7c/reference/c-function-server_client_get_key_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L244)

## Referenced declarations

- [`key_table.activity_time`](/en/tmux/3.7c/reference/c-struct-key_table-activity_time/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`client.keytable`](/en/tmux/3.7c/reference/c-struct-client-keytable/) (attribute)
- [`key_table.references`](/en/tmux/3.7c/reference/c-struct-key_table-references/) (attribute)
