| Crates.io | xterm-color |
| lib.rs | xterm-color |
| version | 1.0.2 |
| created_at | 2025-01-03 16:12:16.995376+00 |
| updated_at | 2025-12-28 15:53:36.349859+00 |
| description | Parses the subset of X11 Color Strings emitted by terminals in response to OSC color queries |
| homepage | |
| repository | https://github.com/tautropfli/terminal-colorsaurus |
| max_upload_size | |
| id | 1502582 |
| size | 27,987 |
Parses the subset of X11 Color Strings emitted by terminals in response to OSC color queries (OSC 10, OSC 11, ...).
use xterm_color::Color;
let color = Color::parse(b"rgb:11/aa/ff").unwrap();
assert_eq!(color, Color::rgb(0x1111, 0xaaaa, 0xffff));
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.