On this page
tmuxtest.ServerOptions
- Module
- tmuxtest
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/harness.go
-
ServerOptions configures a harness-owned
tmux.Server. All inputs are copied before filesystem or process operations, so callers retain ownership.
5 declared, 0 inherited
Members
- Binary attribute Binary is the tmux executable. An empty value resolves tmux from PATH.
- Config attribute Config is appended to the harness-owned config file; it cannot replace the private file that prevents user configuration from loading.
- FixedShell attribute FixedShell gives panes without an explicit command a POSIX shell with no startup files and the prompt ShellPrompt. RunInPane sets it; the default preserves tmux process behavior for tests that need it.
- InitialSession attribute InitialSession starts the daemon with this copied request. Nil returns a lazy bare server; a later tmux command may start it.
- ProcessEnvironment attribute ProcessEnvironment supplies the server environment. Nil snapshots the current process environment, while a non-nil empty slice remains empty. Tmux targeting variables are removed in either case.