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.

function LibTmux.jl latest

set_option

Module LibTmux.set_option LibTmux
Source and package
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...)
Esc

Type to search.

Reference preview Open reference