suckless/up.sh
alejandrogs73 b725d70e1c Squashed 'scroll/' content from commit 51ee387
git-subtree-dir: scroll
git-subtree-split: 51ee387dd3860b13baaca5ef23392f7282e9bbdc
2026-09-25 10:52:06 +02:00

15 lines
229 B
Bash
Executable file

#!/bin/sh
set -eu
export POSIXLY_CORRECT=1
i=1
while test "$i" -lt 50; do
echo "$i"
i=$((i + 1))
done > tmp.log
(sleep 1; printf '\033[5;2~'; sleep 1; ) \
| ./ptty ./scroll tail -fn 50 tmp.log > out.log
cmp out.log up.log