mirror of
https://git.phreedom.club/localhost_frssoft/bbs-telnet
synced 2024-11-23 19:59:19 +02:00
line by line mode in timeline
This commit is contained in:
parent
b3a414ab7e
commit
41bbe69ac1
13
executor.sh
13
executor.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue