Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

test(tui2): re-enable ANSI for VT100 tests (#8423)

Josh McKinney3c353a3acab9
diff --git a/codex-rs/tui2/src/test_backend.rs b/codex-rs/tui2/src/test_backend.rs
index a5460af2e0..47f17e6b93 100644
--- a/codex-rs/tui2/src/test_backend.rs
+++ b/codex-rs/tui2/src/test_backend.rs
@@ -25,6 +25,7 @@ pub struct VT100Backend {
impl VT100Backend {
/// Creates a new `TestBackend` with the specified width and height.
pub fn new(width: u16, height: u16) -> Self {
+ crossterm::style::Colored::set_ansi_color_disabled(false);
Self {
crossterm_backend: CrosstermBackend::new(vt100::Parser::new(height, width, 0)),
}