Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

Session.SelectLastWindowAsync

Selects the window that was last active.

Source and package
Qualified name
LibTmux.Session.SelectLastWindowAsync
Namespace
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.WindowNavigation.cs
async Task<Window> SelectLastWindowAsync( CancellationToken cancellationToken = default )
Parameters
Returns

The window that is active afterwards.

Recorded calls

source calls
No call edges in the C# model.

The 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 material

The tmux commands behind SelectLastWindowAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 7 other ports mapped

Source-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.

Return to the window that was active before in each port
PortAPIDiffers from C#
C# LibTmux.Session.SelectLastWindowAsync
Selects the window that was last active.
This page
Python libtmux.Session.last_window
Select the last (previously selected) window.
None recorded in the model
Rust session.Session.last_window
Move to the window that was active before this one, and return it.
None recorded in the model
Go tmux.Session.LastWindow
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.github.libtmux.Session.lastWindow
Returns to the window that was active before this one.
None recorded in the model
C++ libtmux::Session::select_last_window readonly
Swift Server.selectLastWindow(in:)
Returns to the window that was active before the current one.
on Server
Raku LibTmux::Model::SessionRef.last-window
Select the session's previous current window.
on SessionRef
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent.

Session.selectWindow takes next, previous or last

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

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#.

Esc
Search in

Type to search.

Reference previewOpen reference