Core LibraryunreleasedAPI reference

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

function LibTmux.jl

set_option

Source and package
Qualified name
LibTmux.set_option
Module
LibTmux
Package
LibTmux
Source
src/configuration.jl

Methods

set_option( connection::LibTmux.ControlConnection, scope, name::AbstractString, value::AbstractString; index, kwargs..., )[source]

Set an exact option without format expansion. Unrestricted string options and string arrays preserve literal tabs/newlines. Numeric, flag, choice, colour, key, style and other validated options require printable UTF-8 values because tmux may reflect an invalid value in control diagnostics. tmux validates the remaining value rules. Scalar command options use set_hook's literal grammar; an empty value stores an empty command list. Hook arrays require set_hook. Return ControlResult; cancellation does not roll back an admitted mutation.

set_option(connection::ControlConnection, scope, name, value; index=nothing, kwargs...)

set_option( server::LibTmux.Server, scope, name::AbstractString, value::AbstractString; index, kwargs..., )[source]

Pass a value to tmux without format expansion and return CommandResult. Scope and names follow get_option. tmux applies each option's value rules, including flag and numeric parsing. Without an index, its whole-array assignment rules apply. For executable command bodies use set_hook.

set_option(server, scope, name, value; index=nothing, kwargs...)

Recorded calls

source calls
No call edges in the Julia model.

The Julia 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_option.

tmux command

task material

The tmux commands behind set_option.

set-option show-options (on a Server)

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference