Session.SelectLastWindowAsync
Selects the window that was last active.
Source and package
- Qualified name
-
LibTmux .Session. Select Last Window Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.WindowNavigation.cs
- async Task<Window> SelectLastWindowAsync( Cancellation
Token cancellationToken = default ) -
- Parameters
-
-
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
- Returns
-
The window that is active afterwards.
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.Session.SelectLastWindowAsync.
tmux command
task materialThe tmux commands behind SelectLastWindowAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 7 other ports mappedSource-verified mappings for Return to the window 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 window that was last active. | This page |
| Python | libtmux Select the last (previously selected) window. | None recorded in the model |
| Rust | session Move to the window that was active before this one, and return it. | None recorded in the model |
| Go | tmux LastWindow makes the receiver session's previously selected winlink current and returns that freshly materialized session-specific Window. The selection is session-scoped; it does not promise focus for clients attached to other sessions. A transport or context error can be delivery-ambiguous and no rollback is attempted. Command or refresh failure returns a zero Window because this navigation operation cannot identify the selected view reliably without refresh. | None recorded in the model |
| Java | io Returns to the window that was active before this one. | None recorded in the model |
| C++ | libtmux:: | readonly |
| Swift | Server Returns to the window that was active before the current one. | on Server |
| Raku | Lib Select the session's previous current window. | on SessionRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Session.selectWindow takes next, previous or last
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#.