# Libtmux.Command.view

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

```
type _ view =
  | Capture: Snapshot.t view 
  | Capture_text: {
  pane: Pane.t ;
  start: int ;
  end_: int ;
  scratch_dir: string } -> Captured_text.t view 
  | Rename_window: Window.target * string -> unit view 
  | Rename_session: Session.target * string -> unit view 
  | Send_text: Pane.target * string -> unit view 
  | Send_keys: Pane.target * Key.t list -> unit view 
  | Wait_for: string -> unit view 
  | Signal: string -> unit view 
  | Capture_environment: Environment.scope * bool -> Environment.t view 
  | Capture_options: Options.scope * bool -> Options.t view 
  | Read_option: Options.scope * string * bool -> Options.value option view 
  | Capture_hooks: Options.scope -> Options.t view 
  | Read_hook: Options.scope * string * bool -> Options.value option view 
  | Mutate: mutation -> unit view 
  | Create_session:
  {
  name: string ;
  window_name: string option ;
  width: int ;
  height: int ;
  spawn: Spawn.t } -> Created.t view 
  | Create_window:
  {
  session: Session.target ;
  index: int option ;
  name: string option ;
  spawn: Spawn.t } -> Created.t view 
  | Split_pane:
  {
  pane: Pane.target ;
  direction: Geometry.direction ;
  size: Geometry.size option ;
  spawn: Spawn.t } -> Created.t view 
  | Break_pane:
  {
  pane: Pane.target ;
  session: Session.target ;
  index: int ;
  name: string option } -> Created.t view 
```

## Members

### Other members

- [`Break_pane`](/en/ocaml/latest/reference/libtmux-command-view-type-break_pane/) (constant)
- [`Capture`](/en/ocaml/latest/reference/libtmux-command-view-type-capture/) (constant)
- [`Capture_environment`](/en/ocaml/latest/reference/libtmux-command-view-type-capture_environment/) (constant)
- [`Capture_hooks`](/en/ocaml/latest/reference/libtmux-command-view-type-capture_hooks/) (constant)
- [`Capture_options`](/en/ocaml/latest/reference/libtmux-command-view-type-capture_options/) (constant)
- [`Capture_text`](/en/ocaml/latest/reference/libtmux-command-view-type-capture_text/) (constant)
- [`Create_session`](/en/ocaml/latest/reference/libtmux-command-view-type-create_session/) (constant)
- [`Create_window`](/en/ocaml/latest/reference/libtmux-command-view-type-create_window/) (constant)
- [`Mutate`](/en/ocaml/latest/reference/libtmux-command-view-type-mutate/) (constant)
- [`Read_hook`](/en/ocaml/latest/reference/libtmux-command-view-type-read_hook/) (constant)
- [`Read_option`](/en/ocaml/latest/reference/libtmux-command-view-type-read_option/) (constant)
- [`Rename_session`](/en/ocaml/latest/reference/libtmux-command-view-type-rename_session/) (constant)
- [`Rename_window`](/en/ocaml/latest/reference/libtmux-command-view-type-rename_window/) (constant)
- [`Send_keys`](/en/ocaml/latest/reference/libtmux-command-view-type-send_keys/) (constant)
- [`Send_text`](/en/ocaml/latest/reference/libtmux-command-view-type-send_text/) (constant)
- [`Signal`](/en/ocaml/latest/reference/libtmux-command-view-type-signal/) (constant)
- [`Split_pane`](/en/ocaml/latest/reference/libtmux-command-view-type-split_pane/) (constant)
- [`Wait_for`](/en/ocaml/latest/reference/libtmux-command-view-type-wait_for/) (constant)
