Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
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

function libtmux-elixir

Server.probe_command/1

Builds a command that prints the daemon's identity or a literal reply.

Source and package
Qualified name
LibTmux.Server.probe_command/1
Module
LibTmux
Declared in
Server
Package
libtmux
Source
lib/libtmux/server.ex
probe_command(arg1) @spec probe_command( :daemon_identity | {:literal, binary()} ) :: LibTmux.Command.t()

Description

:daemon_identity prints the native PID and start time in Unix seconds, separated by a space. {:literal, text} prints 1–128 printable ASCII bytes. Both end with one newline. Construction performs no I/O and raises ArgumentError for an invalid input.

Keep the native list-commands command unaliased. The required tmux releases define no after-list-commands hook. run/3 runs the probe on an existing daemon. LibTmux.Command.render/2 can also put the command into a trusted conditional. The surrounding commands keep their own hooks.

Parameters

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.probe_command/1.

Esc
Search in

Type to search.

Reference previewOpen reference