# tmux.WindowFromEnv

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/from_env.go#L77
- **Page:** https://libtmux.org/reference/go/tmux-windowfromenv/

```
tmux.WindowFromEnv(ctx: context.Context, environment: map[string]string) -> (Window, error)
```

WindowFromEnv returns the window containing the pane identified by the environment. Nil reads the process environment; a nonnil empty map does not.
