Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-ts latest

Server.colors

The terminal color override; undefined leaves detection to tmux.

Source and package
Qualified name
Server.colors
Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
PowerShell Julia Elixir Python Ruby Lua Rust Go Java C# C++ Swift Kotlin Scala F#
colors(): 256 | undefined

Examples#

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

In other ports#

How many colours the terminal was declared to have

Equivalents of How many colours the terminal was declared to have in other languages
Language Equivalent
Python libtmux.Server.colors
Rust server.Server.colors
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#.

Esc

Type to search.

Reference previewOpen reference