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.

Swift API

method libtmux-swift latest

Server.runHook(_:in:)

Runs a hook's commands now, without waiting for what would trigger it.

Source and package
Qualified name
Server.runHook(_:in:)
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Options.swift
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Rust Go Java C# C++ Kotlin Scala OCaml F# Clojure

Description#

Running a name nothing is bound to succeeds and does nothing.

Parameters
Raises

tmux command#

The tmux commands behind runHook(_:in:).

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 runHook(_:in:).

In other ports#

Run a session hook's commands now

Equivalents of Run a session hook's commands now in other languages
Language Equivalent
Python libtmux.Session.run_hook
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Session
Rust no equivalent on Session
Go tmux.Session.RunHook
Java no equivalent on Session
C# no equivalent on Session
C++ no equivalent on Session
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

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

Run a window hook's commands now

Equivalents of Run a window hook's commands now in other languages
Language Equivalent
Python libtmux.Window.run_hook
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Window
Rust no equivalent on Window
Go tmux.Window.RunHook
Java no equivalent on Window
C# no equivalent on Window
C++ no equivalent on Window
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

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

Run a pane hook's commands now

Equivalents of Run a pane hook's commands now in other languages
Language Equivalent
Python libtmux.Pane.run_hook
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Pane
Rust no equivalent on Pane
Go tmux.Pane.RunHook
Java no equivalent on Pane
C# no equivalent on Pane
C++ no equivalent on Pane
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

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

Esc

Type to search.

Reference previewOpen reference