# server.Server.colors

- **Module:** server
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/server.ts#L548
- **Page:** https://libtmux.org/en/ts/latest/reference/server-server-colors/

```
colors(): 256 | undefined
```

The terminal color override; undefined leaves detection to tmux.

## Examples

```ts
new Server({ colors: 256 }).colors; // 256
```

## In other ports

How many colours the terminal was declared to have

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.colors`](/en/py/latest/reference/libtmux-server-colors/) (attribute) |
| Rust | [`server.Server.colors`](/en/rs/latest/reference/server-server-colors/) (method) |
| Go | no equivalent on `Server` |
| Java | no equivalent on `Server` |
| C# | no equivalent on `Server` |
| C++ | no equivalent on `Server` |
| Swift | no equivalent on `Server` |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.
