# LibTmux.Server.createWindowWith

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Server.hs#L420
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-server-v-createwindowwith/

```haskell
createWindowWith
  :: MutationOptions
  -> Server
  -> WindowPlacement
  -> WindowOptions
  -> IO CreatedWindow
```

Signature types: [`MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/), [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`WindowPlacement`](/en/haskell/latest/reference/libtmux-creation-t-windowplacement/), [`WindowOptions`](/en/haskell/latest/reference/libtmux-creation-t-windowoptions/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO), [`CreatedWindow`](/en/haskell/latest/reference/libtmux-creation-t-createdwindow/).

[`createWindow`](/en/haskell/latest/reference/libtmux-server-v-createwindow/) with one deadline covering caller context, admission and
 completion. Generation checks precede dispatch. Insertion and replacement
 can affect existing links before a later failure; no rollback or replay is
 promised. See [`creationReceipt`](/en/haskell/latest/reference/libtmux-recovery-v-creationreceipt/) for known IDs after uncertain completion.

## Referenced declarations

- [`LibTmux.Creation.CreatedWindow`](/en/haskell/latest/reference/libtmux-creation-t-createdwindow/) (typealias)
- [`LibTmux.Server.MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)
- [`LibTmux.Creation.WindowOptions`](/en/haskell/latest/reference/libtmux-creation-t-windowoptions/) (data type)
- [`LibTmux.Creation.WindowPlacement`](/en/haskell/latest/reference/libtmux-creation-t-windowplacement/) (data type)

## tmux command

The tmux commands behind `createWindowWith`.

- [`new-window`](/en/tmux/latest/manual/new-window/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_new_window_entry`](/en/tmux/latest/reference/c-variable-cmd_new_window_entry/) (attribute)
- [`cmd_new_window_exec`](/en/tmux/latest/reference/c-function-cmd-new-window-c-cmd_new_window_exec/) (function)
