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

KillWindowRequest

KillWindowRequest selects a window for Session.KillWindow on tmux 3.3a or later. A zero request kills the receiver session's current window, and Index is scoped to that session. Target is unrestricted tmux target syntax and may select a window in another session. Target and Index are mutually exclusive and are checked before execution. Pointer values are read during the call and are not retained; callers must not mutate them concurrently. A nil pointer omits its selector, while a nonnil pointer is explicit even when Target points to an empty string.

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

Fields2#

KillWindowRequest fields
NameTypeDescription
Index *int Index selects a winlink index within the receiver session when nonnil.
Target *string Target is passed through as unrestricted tmux target syntax when nonnil.
Esc

Type to search.

Reference previewOpen reference