Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Gate the TUI suspend restore helper on Unix (#34578)

pakrym-oaiaf71774d2645
diff --git a/codex-rs/tui/src/tui.rs b/codex-rs/tui/src/tui.rs
index 834db5c097..4a96a8cc4f 100644
--- a/codex-rs/tui/src/tui.rs
+++ b/codex-rs/tui/src/tui.rs
@@ -294,6 +294,7 @@ fn restore_common(
/// Restore the terminal to its original state.
/// Inverse of `set_modes`.
+#[cfg(unix)]
pub fn restore() -> Result<()> {
restore_common(RawModeRestore::Disable, KeyboardRestore::PopStack)
}