line by line mode in timeline

This commit is contained in:
localhost_frssoft 2023-07-24 11:17:48 +03:00
parent b3a414ab7e
commit 41bbe69ac1

View File

@ -44,7 +44,18 @@ while read -r cmd mesg; do
reply=$reply_id toot "$status" | jq '.id, .errors'
reply=''
;;
"home") timeline_home "$mesg" ;;
"home")
tlhome=$(timeline_home "$mesg")
tlhome_len=$(echo "$tlhome" | wc -l)
current_pos=1
while read -r cursor; do
if [ ':q' = "$cursor" ]; then break; fi
if [ ':all' = "$cursor" ]; then echo "$tlhome"; break; fi
echo "$tlhome" | awk "NR==$current_pos"
current_pos=$(($current_pos + 1))
if [ $current_pos -gt $tlhome_len ]; then break; fi
done
;;
"reg") printf 'bbs > '; continue ;;
"x")
case $mesg in