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

SelectWindowRequest

SelectWindowRequest selects one winlink in a Session on tmux 3.3a or later. Its zero value is invalid: exactly one of WindowID and Index is required. That mutual exclusion, stable-ID syntax, and a nonnegative Index are validated before execution. Index is read during the call and is not retained; nil omits it, a nonnil pointer is explicit, and callers must not mutate it concurrently.

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

Fields2#

SelectWindowRequest fields
NameTypeDescription
Index *int Index selects a nonnegative winlink index in the receiver session.
WindowID WindowID WindowID selects a stable window linked into the receiver session.
Esc

Type to search.

Reference previewOpen reference