From 4861e8780349164b3e8ca75e0936bb72900b56a5 Mon Sep 17 00:00:00 2001 From: ElysianIguana <282770134+ElysianIguana@users.noreply.github.com> Date: Fri, 8 May 2026 04:25:54 +0000 Subject: [PATCH 1/2] Flush stdout in CLI clear command --- cli/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 7dac601e..8de96977 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -4,7 +4,7 @@ #![deny(elided_lifetimes_in_paths)] use std::fmt::Write; -use std::{error, io, process}; +use std::{error, io, io::Write as _, process}; mod args; mod color; @@ -128,6 +128,7 @@ async fn repl_loop(config: &config::Config) -> ExitCode { }, "clear" | "clear()" | ":clear" => { print!("\x1b[2J\x1b[H"); + io::stdout().flush().expect("failed to flush stdout"); } line => { interrupt.reset(); From a20addb6bad131d4ecd4e7a38d671f81f460bb57 Mon Sep 17 00:00:00 2001 From: ElysianIguana <282770134+ElysianIguana@users.noreply.github.com> Date: Fri, 29 May 2026 16:57:52 +0000 Subject: [PATCH 2/2] Correct custom unit attribute syntax in default config examples --- cli/src/default_config.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/default_config.toml b/cli/src/default_config.toml index 3dbdf32f..159ed36d 100644 --- a/cli/src/default_config.toml +++ b/cli/src/default_config.toml @@ -86,7 +86,7 @@ other = {} # plural = 'miles' # plural name can be omitted if it is # # the same as the singular name # definition = '1609.344 meters' -# attribute = 'allow_long_prefix' +# attribute = 'allow-long-prefix' # ``` # # If the singular and plural names are the same, you can omit @@ -109,11 +109,11 @@ other = {} # [[custom-units]] # singular = 'milli' # definition = '0.001' -# attribute = 'is_long_prefix' +# attribute = 'is-long-prefix' # # [[custom-units]] # singular = 'byte' # plural = 'bytes' # definition = '!' # an exclamation mark defines a new base unit -# attribute = 'allow_long_prefix' +# attribute = 'allow-long-prefix' # ```