method libtmux-dotnet latest
SelectLayoutRequest.ToCommand
Returns a layout request as one tmux command for a window.
Source and package
- Module
- LibTmux
- Declared in
- SelectLayoutRequest
- Package
- LibTmux
- Source
- src/LibTmux/Requests/SelectLayoutRequest.cs
- ToCommand ( window : Window ) Tmux
Command -
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
-
-
Argument
Null –Exception windowis null. -
Tmux
Window – The layout is one tmux may not recognise.Exception
-