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_pane:resize_command/2

Build a resize command without tmux I/O. Uses the dimensions and validation rules of resize/2, preserving the row's captured origin and stable pane ID. Endpoint liveness and native layout constraints are checked during execution. Submit through tmux_server:command/3 or tmux_operation:start/3.

Source and package
Qualified name
tmux_pane:resize_command/2
Declared in
tmux_pane
Package
libtmux_erlang
Source
apps/libtmux_erlang/src/tmux_pane.erl
resize_command(Pane, Options) -spec resize_command(tmux_model:pane(), resize_options()) -> {ok, tmux_command:t()} | {error, map()}.

Examples#

1> tmux_pane:resize_command(invalid_row, #{}).
{error,#{code => empty_resize}}
Esc

Type to search.

Reference previewOpen reference