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) }