Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

method libtmux-dotnet latest

SelectLayoutRequest.ToCommand

Namespace LibTmux.SelectLayoutRequest.ToCommand LibTmux

Returns a layout request as one tmux command for a window.

View as Markdown

Source and package
Module
LibTmux
Declared in
SelectLayoutRequest
Package
LibTmux
Source
src/LibTmux/Requests/SelectLayoutRequest.cs
ToCommand ( window : Window ) → TmuxCommand
method [source]

Description#

This takes the window because a layout name is checked against the ones the running tmux knows, and an unrecognised name takes the whole server down on tmux 3.3a. Batching a layout must not skip that check.

Parameters
  • window ( Window ) – The window the layout applies to.

Returns

The command, ready to add to a TmuxChain .

Raises
Esc

Type to search.