From 5ee57edf8aaa2bec2f185e8d86ac43ef7a3b6e30 Mon Sep 17 00:00:00 2001 From: mageowl Date: Mon, 5 Jan 2026 11:51:08 -0800 Subject: [PATCH] Add clear command to repl Simple clear screen implementation --- cli/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/src/main.rs b/cli/src/main.rs index 31532c72..7dac601e 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -126,6 +126,9 @@ async fn repl_loop(config: &config::Config) -> ExitCode { } Err(e) => eprintln!("{e}"), }, + "clear" | "clear()" | ":clear" => { + print!("\x1b[2J\x1b[H"); + } line => { interrupt.reset(); match eval_and_print_res(line, &mut context, true, &interrupt, config).await {