# LibTmux.Control.submit!/3

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/control.ex#L329
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-control-submit-bang-3/

```
submit!(control, request, options \\ [])
@spec submit!(t(), LibTmux.Control.Request.t(), [
        call_option()
      ]) :: LibTmux.Operation.t()
```

Admits a request or raises the same structured error.

See the [worked example](advanced-execution.html).

## Parameters

- `control` (`t()`)
- `request` (`LibTmux.Control.Request.t()`)
- `options` (`[call_option()]`)
  Default: `[]`.

## tmux command

The tmux commands behind `submit!/3`.

- [`display-message`](/en/tmux/latest/manual/display-message/) (the request reads a field)
- [`set-option`](/en/tmux/latest/manual/set-option/) (the request sets a user option)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_display_message_entry`](/en/tmux/latest/reference/c-variable-cmd_display_message_entry/) (attribute)
- [`cmd_display_message_exec`](/en/tmux/latest/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function)
- [`cmd_set_option_entry`](/en/tmux/latest/reference/c-variable-cmd_set_option_entry/) (attribute)
- [`cmd_set_option_exec`](/en/tmux/latest/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function)
