pub fn run_repl(terminal: &mut DefaultTerminal) -> Result<()>Expand description
Runs the REPL event loop until the user exits with Ctrl+C or :exit.
Initializes a fresh Evaluator with the stdlib loaded, then enters a
draw-then-poll loop: renders the current state, blocks on the next key
event, and dispatches it. Returns an [io::Result] so terminal errors
propagate cleanly to [start_repl].