mirror of
https://github.com/openai/codex.git
synced 2026-05-02 12:21:26 +03:00
terminal.app
This commit is contained in:
@@ -481,11 +481,10 @@ impl App {
|
||||
)?;
|
||||
}
|
||||
TuiEvent::Resized(size) => {
|
||||
// iTerm2 scrollback clear.
|
||||
use std::io::Write;
|
||||
write!(
|
||||
tui.terminal.backend_mut(),
|
||||
"\x1b]1337;ClearScrollback=yes\x07"
|
||||
"\x1b]1337;ClearScrollback=yes\x07\x1b[2J\x1b[H\x1b[3J"
|
||||
)?;
|
||||
tui.terminal.clear()?;
|
||||
self.has_emitted_history_lines = false;
|
||||
|
||||
Reference in New Issue
Block a user