libtmux Reference MCP Search
On this page

window.Window.move_to

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
crates/libtmux/src/window.rs
move_to ( mut , session : &Session , index : i32 ) Result<&mut Self, Error>
method [source]
method [source]
move_to

Move this window to an index, possibly in another session.

The destination is a session and an index rather than a target string, because those are the two things tmux needs and a string could express neither or both.

Errors

Returns Error::ServerMismatch when session belongs to another server, or an error when the destination is occupied or absent.

0 declared, 0 inherited

Esc

Type to search.