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.

method libtmux-ts latest

Pane.showHooks

Read hooks set on this pane itself.

Source and package
Qualified name
Pane.showHooks
Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.ts
Other languages
PowerShell Julia Elixir PythonRubyLua Rust GoJavaC# C++ Swift Kotlin Scala F#
showHooks(): Promise< ReadonlyMap<string, readonly string[]> >

Examples#

const hooks = await pane.showHooks();
hooks.get("pane-title-changed")?.[0];

tmux command#

The tmux commands behind showHooks.

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 showHooks.

In other ports#

Read a pane's hooks

Equivalents of Read a pane's hooks in other languages
Language Equivalent
Python libtmux.Pane.show_hooks
Ruby LibTmux::Pane#hooks
Lua libtmux.Pane:list_hooks
Rust no whole-table read; Pane.hook reads one
Go tmux.Pane.Hooks
Java io.github.libtmux.Pane.hooks
C# LibTmux.Pane.Hooks
C++ no equivalent on Pane
Swift Server.hooks(_:)

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference