Importar scroll desde https://git.suckless.org/scroll
This commit is contained in:
commit
00bf7206e3
13 changed files with 1067 additions and 0 deletions
15
scroll/up.sh
Executable file
15
scroll/up.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue