Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

method libtmux-perl latest

Server.move_window

move_window(link => WindowLink|session_id:index, session => Session|session_id, index => integer?).

Source and package
Qualified name
LibTmux::Server::move_window
Module
LibTmux
Declared in
Server
Package
LibTmux
Source
packages/core/lib/LibTmux/Server.pm
Other languages
Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure
sub move_window($self, %args)

Description#

Move one contextual LibTmux::WindowLink into the destination session/index. Other links of the physical window keep their own associations. Use "link_window" to add an association without moving one.

Returns undef after command acceptance. Performs I/O; failures propagate through LibTmux::X. Captured objects are not modified.

$server->move_window(link => $link, session => $session, index => 4);

Methods#

Parameters

tmux command#

The tmux commands behind move_window.

display-message (daemon identity or target preflight) move-window

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Move a window to another session or index

Equivalents of Move a window to another session or index in other languages
Language Equivalent
Python libtmux.Window.move_window
Lua libtmux.WindowLink:move
Erlang tmux_window_link:move/3
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.move
Rust window.Window.move_to
Go tmux.Window.Move
Java io.github.libtmux.Window.moveTo
C# LibTmux.Window.MoveAsync
C++ libtmux::Window::move_to
Swift Server.move(_:to:at:)
OCaml Libtmux_unix.Client.move_window_at

No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference