#true-color #xterm #convert #16 #256 #go #xterm256

colette

Convert between truecolor, xterm(1) 256 color and 16 color

1 unstable release

0.2.0 Oct 20, 2024

#2 in #xterm

Download history 113/week @ 2024-10-14 49/week @ 2024-10-21

162 downloads per month

ISC license

12KB
151 lines

colette

Go Reference Go Report Card codecov

Convert between truecolor, xterm(1) 256 color and 16 color. Single-header library. Arranged from tmux.

C

Install

Using prebuilt packages:

Download artifacts from Releases, including:

  • The header source

  • Deb package

  • Rpm package

Or using make install:

mkdir build && cd build && cmake .. && make && make install

Or using submodule:

git submodule add --name colette https://github.com/ifrstr/colette.git colette
add_subdirectory(colette)

Usage

Checkout colette.h.

Go

Install

go get gopkg.ilharper.com/x/colette

Usage

Go Reference

LICENSE

ISC, the same as tmux

No runtime deps