Skip to content
Myr

screencast.sh

This file

Path

doc/screencast.sh

64 lines · 903 bytes · Shell

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 86d6e2d point at it.

Merge pull request #1657 from sharkdp/dependabot/cargo/clap-4.5.23Tavian Barnesbefore adoption86d6e2d

lines 1–64why, one step back
1#!/bin/bash
2# 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=104# Then run this (workaround for #1003):5# sed -i '' 's/<text/<text font-size="1.67"/g' doc/screencast.svg6set -e7set -u89PROMPT="▶"1011enter() {12 INPUT=$113 DELAY=11415 prompt16 sleep "$DELAY"17 type "$INPUT"18 sleep 0.519 printf '%b' "\\n"20 eval "$INPUT"21 type "\\n"22}2324prompt() {25 printf '%b ' "$PROMPT" | pv -q26}2728type() {29 printf '%b' "$1" | pv -qL $((10+(-2 + RANDOM%5)))30}3132main() {33 IFS='%'3435 enter "fd"3637 enter "fd app"3839 enter "fd fi"4041 enter "fd fi --type f"4243 enter "fd --type d"4445 enter "fd -e md"4647 enter "fd -e md --exec wc -l"4849 enter "fd '^[A-Z]'"5051 enter "fd --exclude src"5253 enter "fd --hidden sample"5455 prompt5657 sleep 35859 echo ""6061 unset IFS62}6364main