libtmux.Session.next_window
- Module
- libtmux
- Declared in
- Session
- Package
- libtmux
- Source
- src/libtmux/session.py
- Other languages
- Ruby Lua TypeScript RustGoJava.NETC++Swift
-
Select the next window.
Wraps
$ tmux next-window.- Returns
-
WindowThe newly active window.
In other ports Move to the next window of a session
- 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
session.Session.next_window - Go
tmux.Session.NextWindow - Java
io.github.libtmux.Session.Session.nextWindow - .NET
LibTmux.Session.SelectNextWindowAsync - C++
libtmux::Session::select_next_window - Swift
Server.selectNextWindow(in:)
Examples
>>> w = session.new_window(window_name='nw_test')>>> session.next_window()Window(...)let guard = libtmux::test::TestServer::new().await?;let session = guard.server().new_session("moving").await?;
// One window, so there is nowhere to go and nothing broke.assert!(session.next_window().await?.is_none());
session.new_window("second").await?;assert!(session.next_window().await?.is_some());
guard.shutdown().await?;0 declared, 0 inherited