xterm-color 1.0.1

Parses the subset of X11 Color Strings emitted by terminals in response to OSC color queries
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 6 items with examples
  • Size
  • Source code size: 27.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 688.50 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • bash/terminal-colorsaurus
    52 4 8
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bash

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.