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)?;