mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
51b6bdefbe
Add recommended extension and configure it to auto format prompt.
51b6bdefbe
ยท
2025-07-30 18:37:00 -07:00
History
oai-codex-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::IntoTextis not in scope for the entire TUI crate- we
panic!()and log ifIntoTextreturns anErrand log it so that the caller does not have to deal with it