Crates.io | agcodex-ansi-escape |
lib.rs | agcodex-ansi-escape |
version | 0.1.0 |
created_at | 2025-08-23 18:22:29.616035+00 |
updated_at | 2025-08-23 18:22:29.616035+00 |
description | ANSI escape sequence handling and rendering for AGCodex |
homepage | https://github.com/agcodex/agcodex |
repository | https://github.com/agcodex/agcodex |
max_upload_size | |
id | 1807761 |
size | 25,491 |
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 cratepanic!()
and log if IntoText
returns an Err
and log it so that
the caller does not have to deal with it