Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux_erlang has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-erlang latest

tmux_capability:command/2

Look up one canonical native command in an exact source profile. Returns unknown_command for aliases or unknown names, unsupported_command when a known command is absent from that profile, and unsupported_command_catalogue for uncatalogued or tracking versions. Performs no I/O.

Source and package
Qualified name
tmux_capability:command/2
Declared in
tmux_capability
Package
libtmux_erlang
Source
apps/libtmux_erlang/src/tmux_capability.erl
command(Version, Name) -spec command(tmux_version:t(), binary()) -> {ok, command_info()} | {error, map()}.

Examples#

1> {ok, V} = tmux_version:parse(<<"tmux 3.3a">>), ok.
ok
2> {ok, C} = tmux_capability:command(V, <<"send-keys">>), ok.
ok
3> maps:get(file, maps:get(source, C)).
<<"cmd-send-keys.c">>
Parameters
Esc

Type to search.

Reference previewOpen reference