Core Library0.xAPI reference

Choose documentation 2

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

cmdlet libtmux-powershell

LibTmux.Set-TmuxOption

Set an option in a native tmux owner table.

Source and package
Qualified name
LibTmux\Set-TmuxOption
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/SetTmuxOptionCommand.cs

Description

Store one option or indexed array entry. Append, format expansion and overwrite protection are delegated to tmux. PassThru returns its native TmuxOptionValue readback, so an appended or expanded value is the value stored, not an echo of the argument. An empty string remains a value. WhatIf performs no tmux I/O.

Notes

Reads contact tmux explicitly. Empty owner pipelines perform no I/O. Errors retain the original core exception and native owner as their target. ErrorAction Continue permits later owners; Stop terminates the pipeline. Cancellation stops the operation but cannot undo a dispatched mutation. Set readback is an observation, not a transaction with other clients.

Command details

Command type
cmdlet
Default parameter set
Server
Confirmation
Supports -WhatIf and -Confirm; confirm impact: Medium.
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server: A native server owner.; LibTmux.Session: A native session owner.; LibTmux.Window: A native window owner.; LibTmux.Pane: A native pane owner.
Outputs
LibTmux.TmuxOptionValue
Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

LibTmux.TmuxOptionValue: The native stored value, only with PassThru.

Examples

Example 1 Set the key mode on a previously selected native $session and inspect its stored value. View source

Terminal window
$session | LibTmux\Set-TmuxOption -Name 'status-keys' -Value 'vi' -PassThru

Recorded calls

source calls
No call edges in the PowerShell model.

The PowerShell reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux\Set-TmuxOption.

tmux command

task material

The tmux commands behind Set-TmuxOption.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference