mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
Gate the TUI suspend restore helper on Unix (#34578)
Compile `tui::restore` only on Unix, matching its use by the Unix job-control suspension path. GitOrigin-RevId: d0ce03def8905e94376ec7f5acf8d083d5dde05b
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user