From 0488ffbfcfd749d4d546a88454b69b96ff3f80af Mon Sep 17 00:00:00 2001 From: Thomas Churchman Date: Sat, 29 Jun 2024 13:27:22 +0200 Subject: [PATCH] docs(README): simplify cowsay example --- media/cow.svg | 24 ++++++++++-------------- scripts/examples.sh | 7 ++----- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/media/cow.svg b/media/cow.svg index 001b72c..213b38f 100644 --- a/media/cow.svg +++ b/media/cow.svg @@ -1,4 +1,4 @@ - + - -$ -cowsay Hello, world -______________ -< Hello, world > --------------- -\   ^__^ -\  (oo)\_______ -(__)\       )\/\ -||----w | -||     || -$ -exit + +______________ +< Hello, world > +-------------- +\   ^__^ +\  (oo)\_______ +(__)\       )\/\ +||----w | +||     || \ No newline at end of file diff --git a/scripts/examples.sh b/scripts/examples.sh index d9c97cd..ade0d70 100755 --- a/scripts/examples.sh +++ b/scripts/examples.sh @@ -8,11 +8,8 @@ cargo build --release export PATH="$PWD/target/release":$PATH -( - sleep 0.05 - printf "cowsay Hello, world\r" - sleep 0.05 -) | termsnap -o ./media/cow.svg -l 18 -c 60 -- bash --noprofile --rcfile "$PWD/scripts/inputrc" +termsnap -o ./media/cow.svg -l 10 -c 32 -- cowsay Hello, world + ( sleep 0.05