screencast.sh
This file
Path
doc/screencast.sh
60 lines · 768 bytes · Shell
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 6ff58ab point at it.
Re-enable .ignore files, closes #156sharkdpbefore adoption6ff58ab
lines 1–60why, one step back1#!/bin/bash2# Designed to be executed via svg-term from the fd root directory:3# svg-term --command="bash doc/screencast.sh" --out doc/screencast.svg --padding=104set -e5set -u67PROMPT="▶"89enter() {10 INPUT=$111 DELAY=11213 prompt14 sleep "$DELAY"15 type "$INPUT"16 sleep 0.517 printf '%b' "\\n"18 eval "$INPUT"19 type "\\n"20}2122prompt() {23 printf '%b ' $PROMPT | pv -q24}2526type() {27 printf '%b' "$1" | pv -qL $((10+(-2 + RANDOM%5)))28}2930main() {31 IFS='%'3233 enter "fd"3435 enter "fd app"3637 enter "fd sh"3839 enter "fd sh --type f"4041 enter "fd -e md"4243 enter "fd -e md --exec wc -l"4445 enter "fd '^[A-Z]'"4647 enter "fd --exclude src"4849 enter "fd --hidden sample"5051 prompt5253 sleep 35455 echo ""5657 unset IFS58}5960main