Session.last_window
Select the last (previously selected) window.
Source and package
-
Description#
Wraps
$ tmux last-window.Examples#
>>> w1 = session.new_window(window_name='lw_a')>>> w2 = session.new_window(window_name='lw_b', attach=True)>>> session.last_window()Window(...)- Returns
-
WindowThe newly active window.
tmux command
last-windowIn other ports Return to the window that was active before
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
Session.selectWindowtakesnext,previousorlast - Rust
- Go
- Java
- C#
- C++
- Swift
- Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.