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