# Libtmux.Command.mutation

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L884
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-command-mutation/

```
type mutation =
  | Kill_session of Session.target 
  | Kill_window of Window.target 
  | Kill_pane of Pane.target 
  | Select_window_at of Session.target * int 
  | Unlink_window_at of
  {
  session: Session.target ;
  index: int ;
  allow_kill: bool } 
  | Link_window of
  {
  window: Window.target ;
  session: Session.target ;
  index: int } 
  | Move_window_at of
  {
  from_session: Session.target ;
  from_index: int ;
  session: Session.target ;
  index: int } 
  | Select_pane of Pane.target 
  | Set_pane_title of Pane.target * string 
  | Resize_pane of
  {
  pane: Pane.target ;
  width: int option ;
  height: int option } 
  | Resize_window of
  {
  window: Window.target ;
  width: int option ;
  height: int option } 
  | Select_layout of Window.target * Layout.t 
  | Cycle_layout of Window.target * [ `Next  | `Previous ] 
  | Move_pane of
  {
  pane: Pane.target ;
  beside: Pane.target ;
  direction: Geometry.direction ;
  size: Geometry.size option } 
  | Swap_panes of Pane.target * Pane.target 
  | Rotate_panes of Window.target * [ `Forward  | `Backward ] 
  | Zoom_pane of Pane.target 
  | Respawn_pane of {
  pane: Pane.target ;
  spawn: Spawn.t ;
  kill_running: bool } 
  | Clear_history of Pane.target 
  | Set_environment of
  {
  scope: Environment.scope ;
  name: string ;
  value: string ;
  hidden: bool } 
  | Unset_environment of Environment.scope * string 
  | Remove_environment of Environment.scope * string 
  | Set_option of
  {
  scope: Options.scope ;
  name: string ;
  index: int option ;
  value: Options.scalar ;
  append: bool } 
  | Unset_option of Options.scope * string * int option 
  | Clear_option_array of Options.scope * string 
  | Set_hook of
  {
  scope: Options.scope ;
  name: string ;
  index: int option ;
  commands: Hook.command list ;
  append: bool } 
  | Remove_hook of Options.scope * string * int option 
  | Run_hook of Options.scope * string 
  | Switch_client_at of
  {
  client: Client_name.t ;
  session: Session.target ;
  update_environment: bool } 
  | Request_detach_client_at of Client_name.t 
  | Refresh_client_at of Client_name.t * bool 
  | Resize_control_client_at of
  {
  client: Client_name.t ;
  width: int ;
  height: int } 
```

## Members

### Other members

- [`Clear_history`](/en/ocaml/latest/reference/libtmux-command-mutation-clear_history/) (constant)
- [`Clear_option_array`](/en/ocaml/latest/reference/libtmux-command-mutation-clear_option_array/) (constant)
- [`Cycle_layout`](/en/ocaml/latest/reference/libtmux-command-mutation-cycle_layout/) (constant)
- [`Kill_pane`](/en/ocaml/latest/reference/libtmux-command-mutation-kill_pane/) (constant)
- [`Kill_session`](/en/ocaml/latest/reference/libtmux-command-mutation-kill_session/) (constant)
- [`Kill_window`](/en/ocaml/latest/reference/libtmux-command-mutation-kill_window/) (constant)
- [`Link_window`](/en/ocaml/latest/reference/libtmux-command-mutation-link_window/) (constant)
- [`Move_pane`](/en/ocaml/latest/reference/libtmux-command-mutation-move_pane/) (constant)
- [`Move_window_at`](/en/ocaml/latest/reference/libtmux-command-mutation-move_window_at/) (constant)
- [`Refresh_client_at`](/en/ocaml/latest/reference/libtmux-command-mutation-refresh_client_at/) (constant)
- [`Remove_environment`](/en/ocaml/latest/reference/libtmux-command-mutation-remove_environment/) (constant)
- [`Remove_hook`](/en/ocaml/latest/reference/libtmux-command-mutation-remove_hook/) (constant)
- [`Request_detach_client_at`](/en/ocaml/latest/reference/libtmux-command-mutation-request_detach_client_at/) (constant)
- [`Resize_control_client_at`](/en/ocaml/latest/reference/libtmux-command-mutation-resize_control_client_at/) (constant)
- [`Resize_pane`](/en/ocaml/latest/reference/libtmux-command-mutation-resize_pane/) (constant)
- [`Resize_window`](/en/ocaml/latest/reference/libtmux-command-mutation-resize_window/) (constant)
- [`Respawn_pane`](/en/ocaml/latest/reference/libtmux-command-mutation-respawn_pane/) (constant)
- [`Rotate_panes`](/en/ocaml/latest/reference/libtmux-command-mutation-rotate_panes/) (constant)
- [`Run_hook`](/en/ocaml/latest/reference/libtmux-command-mutation-run_hook/) (constant)
- [`Select_layout`](/en/ocaml/latest/reference/libtmux-command-mutation-select_layout/) (constant)
- [`Select_pane`](/en/ocaml/latest/reference/libtmux-command-mutation-select_pane/) (constant)
- [`Select_window_at`](/en/ocaml/latest/reference/libtmux-command-mutation-select_window_at/) (constant)
- [`Set_environment`](/en/ocaml/latest/reference/libtmux-command-mutation-set_environment/) (constant)
- [`Set_hook`](/en/ocaml/latest/reference/libtmux-command-mutation-set_hook/) (constant)
- [`Set_option`](/en/ocaml/latest/reference/libtmux-command-mutation-set_option/) (constant)
- [`Set_pane_title`](/en/ocaml/latest/reference/libtmux-command-mutation-set_pane_title/) (constant)
- [`Swap_panes`](/en/ocaml/latest/reference/libtmux-command-mutation-swap_panes/) (constant)
- [`Switch_client_at`](/en/ocaml/latest/reference/libtmux-command-mutation-switch_client_at/) (constant)
- [`Unlink_window_at`](/en/ocaml/latest/reference/libtmux-command-mutation-unlink_window_at/) (constant)
- [`Unset_environment`](/en/ocaml/latest/reference/libtmux-command-mutation-unset_environment/) (constant)
- [`Unset_option`](/en/ocaml/latest/reference/libtmux-command-mutation-unset_option/) (constant)
- [`Zoom_pane`](/en/ocaml/latest/reference/libtmux-command-mutation-zoom_pane/) (constant)
