# server.Server.colors

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L556
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-colors/

```
server.Server.colors(self) -> Option<u16>
```

Return the configured tmux color mode.

## Example

```rust
let server = libtmux::Server::builder().colors(256).build()?;
assert_eq!(server.colors(), Some(256));
```
