| Crates.io | ansi-color-codec-cli |
| lib.rs | ansi-color-codec-cli |
| version | 3.0.1 |
| created_at | 2025-07-11 11:37:45.714135+00 |
| updated_at | 2025-10-02 11:25:59.364446+00 |
| description | Encode bytes as ANSI background colors |
| homepage | https://github.com/conqp/ansi-color-codec-cli/ |
| repository | https://github.com/conqp/ansi-color-codec-cli/ |
| max_upload_size | |
| id | 1747815 |
| size | 15,640 |
Encode arbitrary byte sequences with ANSI background colors.
You can use the program as a library or as a command line utility.
The library provides a trait ColorCodec<T> that allows arbitrary byte
iterators
(Iterator<Item = u8>) to encode their bytes as ANSI background color
codes or decode them back again.
Therefor the trait provides the functions encode() and
decode().
The library is no_std as does not require alloc.
You can encode bytes or decode color codes by passing them to
ansi-color-codec's STDIN:
$ echo "I use Arch btw" | ansi-color-codec
$ echo "I use Arch btw" | ansi-color-codec | ansi-color-codec -d
For more options, see ansi-color-codec -h.