# cmd_show_messages_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L74
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-show-messages-c-cmd_show_messages_exec/

tmux command: [`show-messages`](/en/tmux/3.7c/manual/show-messages/)

```c
static enum cmd_retval cmd_show_messages_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L83)
- [`cmd_get_args`](/en/tmux/3.7c/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L76)
- [`cmd_show_messages_terminals`](/en/tmux/3.7c/reference/c-function-cmd-show-messages-c-cmd_show_messages_terminals/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L84)
- [`cmdq_print`](/en/tmux/3.7c/reference/c-function-cmdq_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L101)
- [`format_add`](/en/tmux/3.7c/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L96)
- [`format_add_tv`](/en/tmux/3.7c/reference/c-function-format_add_tv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L98)
- [`format_create_from_target`](/en/tmux/3.7c/reference/c-function-format_create_from_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L94)
- [`format_free`](/en/tmux/3.7c/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L104)
- [`job_print_summary`](/en/tmux/3.7c/reference/c-function-job_print_summary/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-messages.c#L88)

## Other function references

- [`format_expand`](/en/tmux/3.7c/reference/c-function-format_expand/) (function)

## Referenced by

- [`cmd_show_messages_entry`](/en/tmux/3.7c/reference/c-variable-cmd_show_messages_entry/) (attribute)

## Referenced declarations

- [`cmd`](/en/tmux/3.7c/reference/c-struct-cmd/) (struct)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.7c/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`format_tree.item`](/en/tmux/3.7c/reference/c-struct-format_tree-item/) (attribute)
- [`message_log`](/en/tmux/3.7c/reference/c-variable-message_log/) (attribute)
- [`message_entry.msg`](/en/tmux/3.7c/reference/c-struct-message_entry-msg/) (attribute)
- [`message_entry.msg_num`](/en/tmux/3.7c/reference/c-struct-message_entry-msg_num/) (attribute)
- [`message_entry.msg_time`](/en/tmux/3.7c/reference/c-struct-message_entry-msg_time/) (attribute)
- [`format_tree.s`](/en/tmux/3.7c/reference/c-struct-format_tree-s/) (attribute)
- [`SHOW_MESSAGES_TEMPLATE`](/en/tmux/3.7c/reference/c-define-cmd-show-messages-c-show_messages_template/) (constant)
