Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Rust API

Rust documentation

server.Server.typed_global_window_option

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/settings.rs
typed_global_window_option ( self , name : &str ) → Result<Option<OptionValue>, Error>
method [source]
method [source]
typed_global_window_option

Read one global window option, decoded according to its declared kind.

Windows inherit from this table. Absence and decoding work as in Self::typed_option .

Errors

Returns an error when tmux does not recognize the option name.

Examples

use libtmux::OptionValue;
let base = server.typed_global_window_option("pane-base-index").await?;
assert!(matches!(base, Some(OptionValue::Number(_))));

0 declared, 0 inherited

Esc

Type to search.