server.Server.colors
Rust
- Python
- TypeScript
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
- Other languages
- PythonTypeScript Go Java .NET C++ Swift
-
Return the configured tmux color mode.
In other ports How many colours the terminal was declared to have
- Python
libtmux.Server.colors - TypeScript
server.Server.colors - Go no equivalent on
Server - Java no equivalent on
Server - .NET no equivalent on
Server - C++ no equivalent on
Server - Swift no equivalent on
Server
- Python
Examples
let server = libtmux::Server::builder().colors(256).build()?;assert_eq!(server.colors(), Some(256));new Server({ colors: 256 }).colors; // 2560 declared, 0 inherited