Core Library0.xAPI reference

Choose documentation 1

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

class libtmux-kotlin

Hooks

Read and update hooks for the server, session, window, or pane that owns this handle.

Source and package
Qualified name
io.github.libtmux.kotlin.Hooks
Package
io.github.libtmux.kotlin
Distribution
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt
public class Hooks

Description

Holds the Java handle privately, so a member here always wins over a same-named catalog-generated extension in HooksOperations.kt.

Members10 members

  • `set` method Binds a tmux command to an event at this scope, replacing anything already bound to it.
  • all method Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.
  • append method As [.append(String, String)], with the command as words.
  • asJava property The Java hooks this wraps: the same object, for a Java API that takes one.
  • equals method
  • hashCode method
  • run method Runs what is bound to an event now, without waiting for the event.
  • server property
  • toString method
  • unset method Removes everything bound to an event at this scope.

tmux hooks

task material

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

Guides

task material

Pages that discuss Hooks.

Esc
Search in

Type to search.

Reference previewOpen reference