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: (), resizepane _options ()) -> {ok, tmux_command: ()} | {error, map()}.t -
Examples#
1> tmux_pane:resize_command(invalid_row, #{}).{error,#{code => empty_resize}}- Parameters
-
-
Pane(tmux_model: ()) #pane -
Options(resize_options ()) #
-