Auto-Advance and Recording¶
Auto-advance mode removes the need to press Enter between steps. The demo runs hands-free with configurable pauses, making it perfect for recording.
Enabling auto-advance¶
Set auto_advance at the global level to specify how many milliseconds to wait
after each command finishes before advancing:
auto_advance: 1500
steps:
- text: "echo 'step one'"
- text: "echo 'step two'"
- text: "echo 'step three'"
Per-step overrides¶
Override the global auto-advance delay on individual steps with wait:
auto_advance: 1000
steps:
- text: "echo 'quick pause'"
wait: 500
- text: "echo 'this output is important, let it breathe'"
wait: 3000
- text: "echo 'back to normal'"
Recording with asciinema¶
Auto-advance pairs perfectly with asciinema for creating shareable terminal recordings:
Example config for a recording:
speed: 25
auto_advance: 1500
clear: true
highlight: true
steps:
- comment: "Building the project..."
- text: "cargo build --release"
wait: 2000
- comment: "Running tests..."
- text: "cargo test"
wait: 2000
- comment: "All done!"
Converting to GIF¶
Use agg to convert the recording to a GIF for embedding in READMEs or blog posts:
Tips¶
- Use
wait: 0on a step to advance immediately (no pause at all) - Comments appear instantly, so add a
waiton the following command to give readers time to read the comment - The
pausedirective respectsauto_advance— it waits the global delay instead of waiting for Enter - Chapter navigation is not available in auto-advance mode (there's no Enter prompt to type into)