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.

MoreLess about this notice

property libtmux-dotnet

Session.Hooks

Gets the hooks of this session.

Source and package
Qualified name
LibTmux.Session.Hooks
Namespace
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Scopes.cs

tmux hooks

task material

Events that run tmux commands, with the scope each hook belongs to and where tmux fires it.

In other ports

task equivalence 12 other ports mapped

Source-verified mappings for Read a session's hooks. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Read a session's hooks in each port
PortAPIDiffers from C#
C# LibTmux.Session.Hooks
Gets the hooks of this session.
This page
Python libtmux.Session.show_hooks
Return a dict of hooks for the target.
None recorded in the model
Ruby LibTmux::Session#hooks
Behavior: Options and hooks.
None recorded in the model
Lua libtmux.Session:list_hooks None recorded in the model
TypeScript session.Session.showHooks
Every hook this session reports.
None recorded in the model
Rust session.Session.hooks
Read every hook set at this session.
async
Go tmux.Session.Hooks
Hooks returns a freshly decoded, caller-owned view of known hooks at this stable session target, including inherited values. A read failure is returned rather than answered with zero values.
None recorded in the model
Java io.github.libtmux.Session.hooks
This session's own hooks.
None recorded in the model
C++ libtmux::Session::hooks readonly
Swift Server.hooks(_:)
Hooks tmux has a command for.
async
OCaml Libtmux_unix.Client.capture_hooks
Capture locally configured built-in hooks. Command values are tmux's printed representation, retained as data.
Pass the corresponding explicit Options scope; captured tables preserve their source and inheritance policy.
Perl LibTmux::Server::show_hooks
show_hooks(target => session_id?, global => boolean?).
Use an explicit session target ID; raw bytes preserve sparse hook indexes and tmux quoting.
Raku LibTmux::Configuration::Hooks.list
Read local hook entries; each value is native printed command source.
Use the explicitly scoped hooks facade.
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference