Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T22:10:15.000Z (over 2 years ago)
- Last Synced: 2024-08-03T23:29:44.808Z (5 months ago)
- Topics: go, truecolor, xterm, xterm-256color, xterm256
- Language: Go
- Homepage: https://pkg.go.dev/gopkg.ilharper.com/x/colette
- Size: 46.9 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
[![Go Reference](https://pkg.go.dev/badge/gopkg.ilharper.com/x/colette.svg)](https://pkg.go.dev/gopkg.ilharper.com/x/colette)
[![Go Report Card](https://goreportcard.com/badge/gopkg.ilharper.com/x/colette)](https://goreportcard.com/report/gopkg.ilharper.com/x/colette)
[![codecov](https://codecov.io/gh/ifrstr/colette/branch/master/graph/badge.svg?token=I4FWALY4EV)](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
[![Go Reference](https://pkg.go.dev/badge/gopkg.ilharper.com/x/colette.svg)](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)