Server.panes
Queries every pane.
Source and package
- Qualified name
-
LibTmux .FSharp .Server. panes - Namespace
- LibTmux.FSharp
- Declared in
Server- Package
- LibTmux.FSharp
- Source
- src/LibTmux.FSharp/Hierarchy.fsi
-
F# value signaturesDeclares the name and type of a value or function in a signature. panes: server: LibTmux -> Query<Lib.Server Tmux >.Pane -
- Parameters
Examples
Read current scalar listings from a private server. Each detached session has one window and pane; no clients are attached. Use Linux or macOS with tmux 3.3a or newer, the .NET 10 SDK or newer, and the .NET 8 and 10 runtimes. In an empty directory, save this project as
Example.fsproj. It references the 0.1.1 release ofLibTmux.FSharpon NuGet: View sourceExample.fsproj <Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType><TargetFrameworks>net8.0;net10.0</TargetFrameworks><LangVersion>10.0</LangVersion><TreatWarningsAsErrors>true</TreatWarningsAsErrors><DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference><DisableImplicitLibraryPacksFolder>true</DisableImplicitLibraryPacksFolder></PropertyGroup><ItemGroup><Compile Include="Program.fs" /><PackageReference Include="FSharp.Core" Version="[10.1.303]" /><PackageReference Include="LibTmux.FSharp" Version="[0.1.1]" /></ItemGroup></Project>Save this complete program as
Program.fs. It creates a private server withLibTmux.Server.CreateOwnedAsync;use!disposes owned scopes after success, cancellation or failure. The F# facade has no separate server constructor. View sourceProgram.fsComplete program // fsharp-snippet: ServerListingsopen Systemopen System.IOopen System.Threadingopen LibTmuxopen LibTmux.FSharplet runAsync () =task {use deadline = new CancellationTokenSource(TimeSpan.FromSeconds 10.)let token = deadline.Tokenlet socketRoot = Directory.CreateTempSubdirectory "libtmux-example-"use _cleanup ={ new IDisposable withmember _.Dispose() = socketRoot.Delete true}let options =ServerConnectionOptions(SocketPath = Path.Combine(socketRoot.FullName, "tmux.sock"),ConfigurationFile = "/dev/null")use! owned = options |> Server.createOwned tokenuse! _demo =owned.Value.CreateOwnedSessionAsync(NewSessionRequest(Name = "demo", WindowName = "shell", Command = "/bin/sh"),token)use! _worker =owned.Value.CreateOwnedSessionAsync(NewSessionRequest(Name = "worker", WindowName = "jobs", Command = "/bin/sh"),token)let server = owned.Valuelet! sessions = server |> Server.sessions |> Query.list tokenlet! windows = server |> Server.windows |> Query.list tokenlet! panes = server |> Server.panes |> Query.list tokenlet! clients = server |> Server.clients |> Query.list tokenfor session in sessions doprintfn "Session: %s (%O)" session.Name session.Idprintfn "Windows: %d; panes: %d; clients: %d" windows.Count panes.Count clients.Count}runAsync().GetAwaiter().GetResult()// endfsharp-snippetBuild the project and run both supported frameworks. Each program checks its result and exits unsuccessfully after an unhandled error:
Terminal window $ dotnet build Example.fsproj --configuration Release && \dotnet bin/Release/net8.0/Example.dll && \dotnet bin/Release/net10.0/Example.dllExpected program output from each framework:
Session: demo ($0)Session: worker ($1)Windows: 2; panes: 2; clients: 0
Recorded calls
source callsThe F# 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 LibTmux.FSharp.Server.panes.
Guides
task materialPages that discuss panes.
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 F# |
|---|---|---|
| F# | Lib Queries every pane. | 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. | 3 overloads Use the -Server parameter set to acquire panes across the server. |
| Julia | Lib | 2 overloads 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. | Returns unique captured physical panes without tmux I/O. |
| Elixir | Lib Returns a materialized physical pane selection without I/O. | 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. | 3 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. | 2 overloads |
| Clojure | libtmux Acquires captured pane occurrences. | Acquires a new graph and returns its pane occurrences. |
| Kotlin | io Captures every pane on the server. | async2 overloads |
| Scala | io Captures every pane on the server. | 2 overloads |
| C# | Lib Gets the panes this handle captured, across every window. | None recorded in the model |
| 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 | None recorded in the model |
| Perl | Lib Return a fresh LibTmux::PaneSelection containing each physical pane identity once. Membership edits cannot change the graph store. | One entry per captured physical pane; raw listings preserve contextual rows separately. |
| Raku | Lib Captured physical panes; relation traversal never acquires newer data. | None recorded in the model |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.