Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Go API

struct libtmux-go latest

LinkWindowRequest

LinkWindowRequest configures linking a window into another session on every supported tmux. Its zero value is invalid because TargetSession is required. Nil TargetIndex asks tmux for a destination index; a nonnil value is explicit and must be nonnegative. After and Before are mutually exclusive and are rejected before execution. TargetIndex is read during the call and is not retained; callers must not mutate it concurrently.

Source and package
Qualified name
tmux.LinkWindowRequest
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_link_move.go
struct tmux.LinkWindowRequest

Fields6#

LinkWindowRequest fields
NameTypeDescription
After bool After inserts the new winlink after the destination target.
Before bool Before inserts the new winlink before the destination target.
Detach bool Detach leaves the target session's current window unchanged.
KillExisting bool KillExisting destroys a window already occupying the destination.
TargetIndex *int TargetIndex selects a destination winlink index; nil lets tmux choose.
TargetSession SessionID TargetSession identifies the destination session in the receiver's tmux server.
Esc

Type to search.

Reference previewOpen reference