docs.rs failed to build termpulse-core-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
termpulse-core
Core OSC 9;4 terminal progress protocol -- build, parse, and sanitize escape sequences.
no_std compatible, zero dependencies, zero allocations.
Usage
use ;
// Build a sequence
let seq = normal_with_label;
let mut buf = ;
let n = seq.write_to.unwrap;
// buf[..n] = b"\x1b]9;4;1;50;Building\x1b\\"
// Parse sequences from raw bytes
use ;
let mut out = ;
let count = find_sequences;
assert_eq!;
// Sanitize labels (prevent escape injection)
use sanitize_label;
let clean = sanitize_label;
assert_eq!;
Feature flags
| Feature | Default | Description |
|---|---|---|
std |
off | Implements std::error::Error for WriteError |
Part of termpulse
This is the low-level core crate. For the full library with terminal detection, backends, throttling, and ETA estimation, see termpulse. For the CLI, see termpulse-cli.