Client.set_option
Validate the scope and scalar kind before admission. Array values require an index, or append:true. Without an index, tmux splits appended text using the option's separator and fills the lowest unused indexes. Text is literal; tmux format expansion is disabled. Hooks use a separate operation.
Source and package
- Qualified name
-
Libtmux_unix .Client. set _option - Module
- Libtmux_unix
- Declared in
Client- Package
- libtmux-unix
- Source
- unix/libtmux_unix.mli
- Other languages
- Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby LuaTypeScriptRustGo Java C# C++Swift Kotlin Scala F# Clojure
- val set_option : ?cancel:Cancellation
.t -> ?index:int -> ?append:bool -> t -> Libtmux.Options -> name:string -> Libtmux.scope .Options -> (unit, Libtmux.scalar .Error ) result.t -
Public owner:
Libtmux_unix
tmux command#
The tmux commands behind set_option.
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.
In other ports#
Set a server option
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| Java | reached through Server.options, whose Options carries the write |
| C# | reached through Server.Options, whose TmuxOptions carries the write |
| C++ | libtmux:: |
| Swift | Server |
| Perl | Lib Pass scope => 'server' 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#.
Set a session option
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | session |
| Rust | session |
| Go | tmux |
| Java | reached through Session.options, whose Options carries the write |
| C# | reached through Session.Options, whose TmuxOptions carries the write |
| C++ | libtmux:: |
| Swift | Server |
| Perl | Lib Pass scope => 'session' 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#.
Set a window option
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | reached through Window.options, whose Options carries the write |
| C# | reached through Window.Options, whose TmuxOptions carries the write |
| C++ | libtmux:: |
| Swift | Server |
| Perl | Lib 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#.
Set a pane option
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | reached through Pane.options, whose Options carries the write |
| C# | reached through Pane.Options, whose TmuxOptions carries the write |
| C++ | libtmux:: |
| Swift | Server |
| Perl | Lib Pass scope => 'pane' 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#.