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

Rust API

Rust documentation

server.Server.colors

Rust

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
Other languages
PythonTypeScript Go Java .NET C++ Swift
colors ( self ) → Option<u16>
method [source]
method [source]
colors

Return the configured tmux color mode.

In other ports How many colours the terminal was declared to have

Examples

let server = libtmux::Server::builder().colors(256).build()?;
assert_eq!(server.colors(), Some(256));
new Server({ colors: 256 }).colors; // 256

0 declared, 0 inherited

Esc

Type to search.