Core Library0.xAPI Reference

Choose documentation 3

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.

method libtmux-go latest

Window.SetOption

SetOption stores a window option at this exact window target without refreshing existing models. Completed failures are secret-safe option errors; cancellation does not prove tmux did not accept the mutation.

Source and package
Qualified name
tmux.Window.SetOption
Package
tmux
Declared in
Window
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/option_mutation.go
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby LuaTypeScriptRust Java C# C++Swift Kotlin Scala OCaml F# Clojure

tmux command#

The tmux commands behind SetOption.

tmux C API#

The C declarations in tmux that implement these commands.

tmux options#

Settings for the server, sessions, windows and panes, with their types, defaults and allowed values.

Guides#

Pages that discuss SetOption.

In other ports#

Set a window option

Equivalents of Set a window option in other languages
Language Equivalent
Python libtmux.Window.set_option
Lua libtmux.Window:set_option
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.setOption
Rust window.Window.set_option
Java reached through Window.options, whose Options carries the write
C# reached through Window.Options, whose TmuxOptions carries the write
C++ libtmux::Window::set_option
Swift Server.setOption(_:to:scope:)
OCaml Libtmux_unix.Client.set_option
Perl LibTmux::Server::set_option Pass scope => 'window' and the explicit target ID where applicable; inherited and global reads are deliberate options.

No equivalent is recorded in Ruby, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference