scroll

scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log | Files | Refs | README | LICENSE

up.sh (229B)


      1 #!/bin/sh
      2 
      3 set -eu
      4 export POSIXLY_CORRECT=1
      5 
      6 i=1
      7 while test "$i" -lt 50; do
      8 	echo "$i"
      9 	i=$((i + 1))
     10 done > tmp.log
     11 
     12 (sleep 1; printf '\033[5;2~'; sleep 1; ) \
     13 	| ./ptty ./scroll tail -fn 50 tmp.log > out.log
     14 
     15 cmp out.log up.log