Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

server.Server.colors

TypeScript
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
Python Ruby Lua Rust Go Java .NET C++ Swift
colors ( ) → 88 | 256 | undefined
method [source]
method [source]
colors

How many colours this server was told the terminal has.

In other ports How many colours the terminal was declared to have
  • Python libtmux.Server.colors
  • Ruby No source-verified Ruby equivalent is recorded for this operation.
  • Lua No source-verified Lua equivalent is recorded for this operation.
  • Rust 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

Examples

new Server({ colors: 256 }).colors; // 256
let server = libtmux::Server::builder().colors(256).build()?;
assert_eq!(server.colors(), Some(256));

0 declared, 0 inherited

Esc

Type to search.