On this page
libtmux::Session::select_next_window
- Module
- libtmux
- Declared in
- Session
- Package
- libtmux-cxx
- Source
- include/libtmux/entities.hpp
- select_next_window ( ) expected< Window, CommandFailure >
-
Move the selection, and answer with the window it landed on.
Named for what they do rather than for what they return:
next_window()would read as a question, and these change which window is active.Relative navigation is tmux's to perform, not a caller's to compute. Next and previous wrap around the window list, and "last" means the previously selected window — state only the server holds, which a caller listing windows has no way to reconstruct.
Each fails when there is nowhere to go, as tmux does: a session with one window refuses all three rather than selecting the window already active.
0 declared, 0 inherited