# Examples

Source: https://libtmux.org/en/powershell/latest/examples/

> Complete programs with setup, expected output, and owned-server cleanup.

Run a complete program for the task you need. Each page includes the entire
program, dependency setup, a run command, expected output, and cleanup.
The examples create private tmux servers and leave existing sessions alone.

Start with [create windows and panes](https://libtmux.org/en/powershell/latest/examples/create-layout/), then choose another task.

- [Create windows and panes](https://libtmux.org/en/powershell/latest/examples/create-layout/): Create a session with two windows, then query a captured snapshot.
- [Check command completion](https://libtmux.org/en/powershell/latest/examples/command-completion/): Run a shell command and verify its authenticated nonzero exit status.
- [Wait for a service](https://libtmux.org/en/powershell/latest/examples/wait-for-service/): Wait for an HTTP readiness line and check the service responds.
