# server.NewSessionOptions.size

- **Module:** server.NewSessionOptions
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L2238
- **Page:** https://libtmux.org/en/rs/latest/reference/server-newsessionoptions-size/

```
server.NewSessionOptions.size(mut, width: u32, height: u32) -> Self
```

Set the initial size, which a detached session would otherwise default.

tmux 3.2a accepts this and sets `default-size` as asked, but still
draws the new, client-less window at its own classic default,
`80x23`: a pane's reported width and height on 3.2a do not reflect
this call, even though the option was set. Every later release draws
at the requested size.
