From d4b1830c301067479dc12bd7984fe71a46f7e64c Mon Sep 17 00:00:00 2001 From: Adrien Burgun Date: Fri, 12 Aug 2022 13:11:32 +0200 Subject: [PATCH] :bug: Fix help message and `run` flush in stackline-cli --- stackline-cli/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stackline-cli/src/main.rs b/stackline-cli/src/main.rs index a560ee6..c3c74da 100644 --- a/stackline-cli/src/main.rs +++ b/stackline-cli/src/main.rs @@ -255,7 +255,7 @@ fn main() { println!("- `clear `: clears the signal of the tile at (x, y)"); println!("- `dir `: sets the direction of the signal at (x, y)"); - println!("- `pane `: creates a new pane at the given position/dimension"); + println!("- `pane `: creates a new pane at the given position/dimension"); println!("- `panes`: lists panes"); println!("- `run `: runs a number of steps"); @@ -278,7 +278,7 @@ fn run(world: &mut World, steps: usize) -> std::io::Result<()> { for _ in 0..steps { if !first { world.step(); - write!(stdout, "\x1b[4;A")?; + write!(stdout, "\x1b[{};A", world.get_bounds().3)?; } first = false; write!(stdout, "{}", world)?;