a73x

tests/scenarios/blink-bar.scenario

Ref:   Size: 750 B

# Blinking bar cursor over visible content.
#
# Writes a demo banner + a prompt-like line, then switches cursor
# shape to blinking bar and captures two frames 500ms apart. The
# cursor column is the only pixel difference between frames, but
# both frames show identifiable content so a human can tell what
# was captured.
size 80 24
timeout 5000ms

# Banner line + newline.
bytes "=== waystty scenario runner demo ===\r\n"
# Prompt-like line — cursor will sit at column 2 after this.
bytes "$ "

# Settle.
sleep 100ms

# Switch to blinking bar cursor (DECSCUSR 5).
bytes "\e[5 q"
sleep 100ms

# Arm check: cursor should be on now (first phase of 500ms arm).
capture before-flip

# Advance past the first phase flip.
sleep 500ms
capture after-flip