libtmux Reference MCP Search
On this page

tmux.Session.LastWindow

View as Markdown

Module
tmux
Declared in
Session
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/session_navigation.go
LastWindow ( ctx : context.Context ) (Window, error)
method [source]
method [source]
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.

0 declared, 0 inherited

Esc

Type to search.