🐛 Fix help message and `run` flush in stackline-cli

main
Shad Amethyst 2 years ago
parent f60f46657f
commit d4b1830c30
Signed by: amethyst
GPG Key ID: D970C8DD1D6DEE36

@ -255,7 +255,7 @@ fn main() {
println!("- `clear <x> <y>`: clears the signal of the tile at (x, y)");
println!("- `dir <x> <y> <dir>`: sets the direction of the signal at (x, y)");
println!("- `pane <x> <y> <width> <height>`: creates a new pane at the given position/dimension");
println!("- `pane <name> <x> <y> <width> <height>`: creates a new pane at the given position/dimension");
println!("- `panes`: lists panes");
println!("- `run <steps>`: 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)?;

Loading…
Cancel
Save