# LibTmux.Creation.WindowOptions

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** data type
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Creation.hs#L82
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-creation-t-windowoptions/

```haskell
data WindowOptions
```

Window creation through an explicit placement. Names and cwd stay literal;
 environment and process bytes keep tmux's native interpretation. Geometry
 comes from the target session. tmux may normalize or reject the name.
 Options carry no Show instance because launch data can contain credentials.

## Instances

- instance [Eq](https://hackage.haskell.org/package/base-4.22.0.0/docs/Data-Eq.html#t:Eq) [`WindowOptions`](/en/haskell/latest/reference/libtmux-creation-t-windowoptions/) ([Source](https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Creation.hs#L89))

## Members

### Common operations

- [`windowDirectory`](/en/haskell/latest/reference/libtmux-creation-v-windowoptions-windowdirectory/) (record field): Initial cwd; a relative path uses the caller's cwd.
- [`windowEnvironment`](/en/haskell/latest/reference/libtmux-creation-v-windowoptions-windowenvironment/) (record field): Overrides for the new pane, not the session environment.
- [`windowLabel`](/en/haskell/latest/reference/libtmux-creation-v-windowoptions-windowlabel/) (record field): Literal label, or tmux's generated name.
- [`windowProcess`](/en/haskell/latest/reference/libtmux-creation-v-windowoptions-windowprocess/) (record field): Initial pane process; completion does not prove exec success.

### Other members

- [`collision`](/en/haskell/latest/reference/libtmux-creation-v-windowoptions-collision/) (record field): Refuse or explicitly remove an occupied destination link.
- [`selectWindow`](/en/haskell/latest/reference/libtmux-creation-v-windowoptions-selectwindow/) (record field): Request selection of the new link in its target session.
- [`WindowOptions`](/en/haskell/latest/reference/libtmux-creation-v-windowoptions/) (data constructor)

## Referenced declarations

- [`LibTmux.Creation.WindowOptions`](/en/haskell/latest/reference/libtmux-creation-t-windowoptions/) (data type)

## Guides

Pages that discuss `WindowOptions`.

- [Create sessions, windows and panes](/en/haskell/latest/guides/creation/)
