agcodex-ansi-escape

Crates.ioagcodex-ansi-escape
lib.rsagcodex-ansi-escape
version0.1.0
created_at2025-08-23 18:22:29.616035+00
updated_at2025-08-23 18:22:29.616035+00
descriptionANSI escape sequence handling and rendering for AGCodex
homepagehttps://github.com/agcodex/agcodex
repositoryhttps://github.com/agcodex/agcodex
max_upload_size
id1807761
size25,491
cognitive (cognitive-glitch)

documentation

https://docs.rs/agcodex-ansi-escape

README

oai-agcodex-ansi-escape

Small helper functions that wrap functionality from https://crates.io/crates/ansi-to-tui:

pub fn ansi_escape_line(s: &str) -> Line<'static>
pub fn ansi_escape<'a>(s: &'a str) -> Text<'a>

Advantages:

  • ansi_to_tui::IntoText is not in scope for the entire TUI crate
  • we panic!() and log if IntoText returns an Err and log it so that the caller does not have to deal with it
Commit count: 0

cargo fmt