Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

tweak comment (#1871)

ae1f7003b47633
diff --git a/codex-rs/tui/src/tui.rs b/codex-rs/tui/src/tui.rs
index e4f85363ad..e0bf9bcc57 100644
--- a/codex-rs/tui/src/tui.rs
+++ b/codex-rs/tui/src/tui.rs
@@ -39,10 +39,7 @@ pub fn init(_config: &Config) -> Result<Tui> {
)?;
set_panic_hook();
- // Ensure the UI starts at the top of the terminal by clearing the
- // current screen and moving the cursor to (0, 0) before creating the
- // Terminal. This makes the initial welcome message render at the very top
- // of the viewport, while keeping the normal scrollback history intact.
+ // Clear screen and move cursor to top-left before drawing UI
execute!(stdout(), Clear(ClearType::All), MoveTo(0, 0))?;
let backend = CrosstermBackend::new(stdout());