mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-10 09:40:23 -04:00
6382220fa0
The basic-rs and basic-cpp templates say "Press any key to exit..." but stdin is line-buffered in cooked mode, so `read(&mut [0u8])` actually blocks until Enter is pressed. Adding a real "any key" handler would require a terminal crate dependency (crossterm, termion, etc.) which is heavy for a starter template. Instead, change the message to "Press Enter to exit..." and use `read_line()` to match the actual behavior. Also removes the unused `Read` import. Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com> Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>