xterm-color

Crates.ioxterm-color
lib.rsxterm-color
version1.0.2
created_at2025-01-03 16:12:16.995376+00
updated_at2025-12-28 15:53:36.349859+00
descriptionParses the subset of X11 Color Strings emitted by terminals in response to OSC color queries
homepage
repositoryhttps://github.com/tautropfli/terminal-colorsaurus
max_upload_size
id1502582
size27,987
Tau Gärtli (tautropfli)

documentation

README

xterm-color

Docs Crate Version

Parses the subset of X11 Color Strings emitted by terminals in response to OSC color queries (OSC 10, OSC 11, ...).

Example

use xterm_color::Color;
let color = Color::parse(b"rgb:11/aa/ff").unwrap();
assert_eq!(color, Color::rgb(0x1111, 0xaaaa, 0xffff));

Docs

License

Licensed under either of

at your option.

Contribution

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.

Commit count: 0

cargo fmt