# Examples

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

> Tested Scala examples against an isolated tmux server.

Start with [Capture pane output](https://libtmux.org/en/scala/latest/examples/capture-pane-output/) for a standalone program with imports, Gradle files, and private-server cleanup.

For an existing server, use [Attaching to tmux](https://libtmux.org/en/scala/latest/guides/attaching-to-tmux/).
That program includes the imports, build files, and launcher. It reads a session
without stopping the server that owns it.
