# libtmux::NewWindowOptions

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L101
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-newwindowoptions/

What a new window is created as, and where it lands.

Placing a window after the current one shifts the windows above it up, so an index a caller is holding can change.

## Members

- `name` (attribute)
- `start_directory` (attribute)
- `shell_command` (attribute)
- `after_current` (attribute): Immediately after the current window rather than at the end.
- `index` (attribute): Put the window at this index rather than at the next free one.
- `focus` (attribute)
- `environment` (attribute): Variables the new process starts with, on top of what tmux passes down.
