Session.setHook
Bind a tmux command to a hook on this session.
Source and package
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.
In other ports#
Bind a command to a session hook
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Rust | session |
| Go | tmux |
| Java | reached through Session.hooks, whose Hooks carries the write |
| C# | reached through Session.Hooks, whose TmuxHooks carries the write |
| C++ | libtmux:: |
| Swift | Server |
No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.