Session.KillWith
KillWith applies one kill-session mode without refreshing the materialized receiver. The zero request destroys the receiver; AllExcept destroys every other session while preserving the receiver and its current window; ClearAlerts only clears alerts in windows linked to the receiver and leaves sessions, winlinks, panes, client attachments, and current-window selections unchanged. Destroying a session handles clients as Session.Kill describes and removes its winlinks; windows left without links and their panes are also destroyed. Group destroys the receiver's group and requires tmux 3.7; on older versions it follows UnsupportedPolicy.
Source and package
- Qualified name
-
tmux.Session. Kill With - Package
- tmux
- Declared in
Session- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/lifecycle_kill.go
- func (s Session) KillWith( ctx context
.Context , request SessionKill , ) errorRequest -
Description#
The three modes are mutually exclusive. Only stderr makes a completed command a
CommandError; nonzero exits without stderr are ignored. Transport errors are delivery-ambiguous.- Parameters
tmux command#
The tmux commands behind KillWith.
tmux C API#
The C declarations in tmux that implement these commands.