Server.colors
The terminal color override; undefined leaves detection to tmux.
Source and package
-
Examples#
new Server({ colors: 256 }).colors; // 256
In other ports#
How many colours the terminal was declared to have
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Rust | server |
| 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#.