# types.NewWindowOptions

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/types.ts#L130
- **Page:** https://libtmux.org/en/ts/latest/reference/types-newwindowoptions/

Where a new window lands, and what runs in it.

tmux moves existing windows up to make room when a direction is given, so
an index a caller is holding can change.

## Members

### Other members

- [`direction`](/en/ts/latest/reference/types-newwindowoptions-direction/) (property): Place the window before or after the session's current window.
- [`environment`](/en/ts/latest/reference/types-newwindowoptions-environment/) (property): Variables to set in the process this starts, tmux's `-e`.
- [`index`](/en/ts/latest/reference/types-newwindowoptions-index/) (property): Create at this exact index, including below the session's `base-index`.
- [`name`](/en/ts/latest/reference/types-newwindowoptions-name/) (property): The window's name.
- [`shellCommand`](/en/ts/latest/reference/types-newwindowoptions-shellcommand/) (property): A command for tmux to run in place of the default shell.
- [`startDirectory`](/en/ts/latest/reference/types-newwindowoptions-startdirectory/) (property)
