Server.panes
Captures every pane on the server.
Source and package
- Qualified name
-
io.github .libtmux .scaladsl .Server. panes - Package
- io.github.libtmux.scaladsl
- Declared in
Server- Distribution
- io.github.libtmux:libtmux-scala_3
- Source
- libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala
-
Scala extension methodsAdds methods callable on the receiver type without changing its definition. (self: Server)Scala method declarationsDeclares a method, with its name, parameter lists and return type. panes(): Vector[Pane]Scala extension methodsAdds methods callable on the receiver type without changing its definition. (self: Server)Scala method declarationsDeclares a method, with its name, parameter lists and return type. panes( expression: io.github [ io.libtmux .scaladsl .query .Expr .github ] ): Vector[Pane].libtmux .Pane -
- Parameters
-
-
expression(io.github [io.libtmux .scaladsl .query .Expr .github ]) for.libtmux .Pane panes(expression)
-
Examples
List all panes, then the panes captured for one window. Use JDK 25, Gradle 9 or newer, and tmux 3.3a or newer on Linux, with
/bin/catand/bin/shavailable. In an empty directory, save this consumer setup assettings.gradle.kts:rootProject.name = "api-example"Save this consumer setup as
build.gradle.kts. It depends on the 0.1.2 release from Maven Central:plugins {scalaapplication}repositories { mavenCentral() }dependencies {implementation("io.github.libtmux:libtmux-scala_3:0.1.2")implementation("org.scala-lang:scala3-library_3:3.9.0")}java { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }application { mainClass.set(providers.gradleProperty("exampleMain")) }Save this consumer setup as
gradle.properties: View sourcegradle.properties org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8kotlin.daemon.jvmargs=-Xmx2gorg.gradle.workers.max=2Save this complete program as
src/main/scala/ListPanes.scala. It starts a private tmux server of its own and stops it when the program closes it. View sourcesrc/main/scala/ListPanes.scalaComplete program package io.github.libtmux.examples.api.scaladirectimport io.github.libtmux.{SessionSpec, SplitSpec, WindowSpec}import io.github.libtmux.scaladsl.*import scala.util.Usingimport scala.util.control.NonFatal/** List all panes, then the panes captured for one window. */object ListPanes {def main(args: Array[String]): Unit = {try {Using.resource(Server.start()) { server =>val workOne = server.newSession(SessionSpec.builder().named("work-one").firstWindowNamed("editor").running("/bin/cat").build())workOne.windows.head.split(SplitSpec.builder().toRight().running("/bin/cat").build())workOne.newWindow(WindowSpec.builder().named("logs").running("/bin/cat").detached().build())server.newSession(SessionSpec.builder().named("work-two").firstWindowNamed("editor").running("/bin/cat").build())println(s"panes=${server.panes().size}")val session =server.session("work-one").getOrElse(sys.error("missing work-one"))val window = session.windows.find(_.name.equals("editor")).getOrElse(sys.error("missing editor"))println(s"window-panes=${window.panes.size}")}} catch {case NonFatal(error) =>System.err.println("Example failed: " + error.getMessage)sys.exit(1)}}}Build the minimal consumer with Gradle and run the saved program. An operation or cleanup error makes the command exit unsuccessfully:
Terminal window $ gradle --console=plain --quiet installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \build/install/api-example/bin/api-exampleExpected output:
panes=4window-panes=2
Same owner
containment 1 of 51 shownOther members of io.github.libtmux.scaladsl.Server whose names share panes. They sit on the same type; that does not make them behave alike.
Recorded calls
source callsThe Scala reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls io.github.libtmux.scaladsl.Server.panes.
tmux command
task materialThe tmux commands behind panes.
list-panes -a server scope, cmd_list_panes_server tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 21 other ports mappedSource-verified mappings for List the server's panes. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from Scala |
|---|---|---|
| Scala | io Captures every pane on the server. | This page |
| Python | libtmux Panes contained in tmux server (across all windows in all sessions). | None recorded in the model |
| Ruby | Lib Behavior: Live acquisition. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| PowerShell | Lib Read panes from a server, session or window. | free function3 overloads Use the -Server parameter set to acquire panes across the server. |
| Julia | Lib | free function panes with a Snapshot reads every captured physical pane. Use paneoccurrences for session placements. |
| Erlang | tmux Return unique captured physical panes in numeric ID order without I/O. related/3 orders panes within a window by pane index. | free function Returns unique captured physical panes without tmux I/O. |
| Elixir | Lib Returns a materialized physical pane selection without I/O. | on Snapshot Returns a Selection of every captured physical pane without contacting tmux. |
| Common Lisp | libtmux: Return a fresh vector of captured physical panes, without I/O.
Snapshots preserve first occurrence; windows preserve the captured pane order. | free function3 overloads panes on a snapshot returns captured physical panes once each. |
| TypeScript | server Every pane on the server. | async |
| Rust | server List every pane on the server, preserving any failure. | async |
| Go | tmux Panes materializes pane records for every winlink. Failures, including ErrNoServer, remain errors rather than empty results. | None recorded in the model |
| Java | io Captures every pane on the server. | None recorded in the model |
| Clojure | libtmux Acquires captured pane occurrences. | free function Acquires a new graph and returns its pane occurrences. |
| Kotlin | io Captures every pane on the server. | async |
| C# | Lib Gets the panes this handle captured, across every window. | None recorded in the model |
| F# | Lib Queries every pane. | free function Builds a deferred pane query on the shared .NET LibTmux.Server. Query.list acquires panes across that server. |
| C++ | libtmux:: | readonly |
| Swift | Server Every pane on this server, in tmux's own order. A pane whose window has several session links appears once. | async |
| OCaml | Libtmux | free function |
| Perl | Lib Return a fresh LibTmux::PaneSelection containing each physical pane identity once. Membership edits cannot change the graph store. | on Snapshot One entry per captured physical pane; raw listings preserve contextual rows separately. |
| Raku | Lib Captured physical panes; relation traversal never acquires newer data. | on Snapshot |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.