Pane.setHook
Bind a tmux command to a pane-scoped hook.
Source and package
-
Examples#
await pane.setHook("pane-title-changed", "display-message 'title changed'");
tmux command#
The tmux commands behind setHook.
tmux C API#
The C declarations in tmux that implement these commands.
tmux hooks#
Events that run tmux commands, with the scope each hook belongs to and where tmux fires it.
Guides#
Pages that discuss setHook.
In other ports#
Bind a command to a pane hook
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Rust | pane |
| Go | tmux |
| Java | reached through Pane.hooks, whose Hooks carries the write |
| C# | reached through Pane.Hooks, whose TmuxHooks carries the write |
| C++ | no equivalent on Pane |
| Swift | Server |
No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.