Window.SelectLastPaneAsync
Selects the pane that was last active.
Source and package
- Qualified name
-
LibTmux .Window. Select Last Pane Async - Namespace
- LibTmux
- Declared in
Window- Package
- LibTmux
- Source
- src/LibTmux/Window.Panes.cs
- async Task<Pane?> SelectLastPaneAsync( Pane
Input ? inputMode Mode = null, bool keepZoom = false, CancellationToken cancellationToken = default ) -
Description
Asking for an input change makes tmux apply that to the last pane and leave the active pane alone, so the handle that comes back is the pane that was already active.
- Parameters
-
-
inputMode(PaneInput ?) – Whether to change the pane's input handling instead.Mode Default
null -
keepZoom(bool) – Whether a zoomed pane stays zoomed.Default
false -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
- Returns
-
The pane that is active afterwards, or null when none is.
Recorded calls
source callsThe C# 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.Window.SelectLastPaneAsync.
tmux command
task materialThe tmux commands behind SelectLastPaneAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 6 other ports mappedSource-verified mappings for Return to the pane that was active before. 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 C# |
|---|---|---|
| C# | Lib Selects the pane that was last active. | This page |
| Python | libtmux Select the last (previously active) pane via $ tmux last-pane. | None recorded in the model |
| Rust | window Move to the pane that was active before this one, and return it. | None recorded in the model |
| Go | tmux LastPane targets the receiver's exact winlink. Its zero request makes the previously active pane active without selecting the window in its session. With an Input mode, tmux changes the previous pane's input state without selecting it; the returned Pane is still the freshly materialized active pane in the receiver context. | None recorded in the model |
| C++ | libtmux:: Go back to the pane that was selected before the current one, and answer with it. | readonly |
| Swift | Server Returns to the pane that was active before the current one. | on Server |
| Raku | Lib Select the previous active pane in this physical window. | on WindowRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no equivalent on Window
no equivalent on Window
No direct public OCaml equivalent is recorded for this operation.
No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.