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.Get-TmuxOption

Read a native tmux option table or named option.

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

Description

The native owner selects its option table. Scope overrides that choice, and Global requests global defaults; pane-local options still use the pane table. A named read emits each native TmuxOption row, preserving sparse array indices, inherited markers and TmuxOptionValue fields. Omit Name to list the table. IncludeInherited requests inherited values explicitly.

Global values and local overrides remain separate. Names follow tmux syntax, including array indices and tmux format expansion. Use Where-Object on returned rows for local PowerShell filtering.

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
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.TmuxOption
Parameters
Common parameters 12

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

Returns

LibTmux.TmuxOption: One object per option or array entry, in tmux order.

Examples

Example 1 Read the effective key mode from a previously selected native $session. View source

Terminal window
$session | LibTmux\Get-TmuxOption -Name 'status-keys' -IncludeInherited

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\Get-TmuxOption.

tmux command

task material

The tmux commands behind Get-TmuxOption.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference