https://github.com/ifrstr/colette
Convert between truecolor, xterm(1) 256 color and 16 color.
https://github.com/ifrstr/colette
go truecolor xterm xterm-256color xterm256
Last synced: 11 days ago
JSON representation
Convert between truecolor, xterm(1) 256 color and 16 color.
- Host: GitHub
- URL: https://github.com/ifrstr/colette
- Owner: ifrstr
- License: isc
- Created: 2022-07-30T06:32:03.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-20T11:52:07.000Z (7 months ago)
- Last Synced: 2025-05-01T06:17:06.097Z (17 days ago)
- Topics: go, truecolor, xterm, xterm-256color, xterm256
- Language: Rust
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - colette
README
# colette
[](https://pkg.go.dev/gopkg.ilharper.com/x/colette)
[](https://goreportcard.com/report/gopkg.ilharper.com/x/colette)
[](https://codecov.io/gh/ifrstr/colette)Convert between truecolor, xterm(1) 256 color and 16 color. Single-header library. Arranged from [tmux](https://github.com/tmux/tmux).
## C
### Install
Using prebuilt packages:
Download artifacts from [Releases](https://github.com/ifrstr/colette/releases), including:
- The header source
- Deb package
- Rpm package
Or using `make install`:
```sh
mkdir build && cd build && cmake .. && make && make install
```Or using submodule:
```sh
git submodule add --name colette https://github.com/ifrstr/colette.git colette
``````cmake
add_subdirectory(colette)
```### Usage
Checkout [colette.h](https://github.com/ifrstr/colette/blob/master/include/colette/colette.h).
## Go
## Install
```sh
go get gopkg.ilharper.com/x/colette
```### Usage
[](https://pkg.go.dev/gopkg.ilharper.com/x/colette)
## LICENSE
[ISC](https://github.com/ifrstr/colette/blob/master/LICENSE), the same as [tmux](https://github.com/tmux/tmux)