streamdown-ansi

Crates.iostreamdown-ansi
lib.rsstreamdown-ansi
version0.1.3
created_at2025-12-31 20:21:52.137937+00
updated_at2025-12-31 21:04:14.907125+00
descriptionANSI escape codes and terminal utilities for streamdown
homepage
repositoryhttps://github.com/fed-stew/streamdown-rs
max_upload_size
id2015289
size54,380
(janfeddersen-wq)

documentation

README

streamdown-ansi

ANSI escape codes and terminal utilities for the streamdown streaming markdown renderer.

Overview

This crate provides terminal-related utilities:

  • ANSI escape sequences - Colors, styles, cursor control
  • Unicode width handling - Proper display width calculation
  • Terminal detection - Capability detection and fallbacks
  • String utilities - ANSI-aware string manipulation

Usage

[dependencies]
streamdown-ansi = "0.1"
use streamdown_ansi::{AnsiStyle, Color};

let style = AnsiStyle::new()
    .foreground(Color::Red)
    .bold();

println!("{}Error!{}", style.start(), style.end());

Part of Streamdown

This is a component of streamdown-rs, a streaming markdown renderer for modern terminals.

License

MIT

Commit count: 0

cargo fmt