Skip to content

Commit b911a19

Browse files
authored
Properly leave the secondary screen after non-erroring baml-cli init (#2565)
Fixes #2564
1 parent c1ce2ab commit b911a19

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎engine/baml-runtime/src/cli/init_ui.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ impl InitUI {
219219
let height = self.steps.len() as u16 + 4; // Steps + title + spacing
220220
execute!(io::stdout(), crossterm::cursor::MoveDown(height))?;
221221

222+
execute!(io::stdout(), LeaveAlternateScreen)?;
223+
222224
Ok(())
223225
}
224226
}

0 commit comments

Comments
 (0)