commit 885f9f69a10868a1ef3fb8c48896a91b708546a3
parent 4d5464608edd71d3b13833a2142afc29fd7d2d7f
Author: hhvn <dev@hhvn.uk>
Date: Mon, 16 May 2022 18:40:54 +0100
Remove pager2 function (less won't work here)
Diffstat:
1 file changed, 0 insertions(+), 12 deletions(-)
diff --git a/bin/interface.sh b/bin/interface.sh
@@ -194,17 +194,6 @@ menu_list(){
done
}
-pager2(){
- lfile=$(cat)
- len=$(echo "$lfile" | wc -l)
- [ $(($len-1)) -gt $term_height ] && echo "$lfile" | less \
- -k$cwd/etc/less \
- -Ps"${s}Re${k}t${s}urn pager(less)-${k}h${s}elp" \
- -Pm"${s}Re${k}t${s}urn pager(less)-${k}h${s}elp" \
- -PM"${s}Re${k}t${s}urn pager(less)-${k}h${s}elp" \
- -Ph"${s}Re${k}t${s}urn"
-}
-
menu_read(){
markread "$board" "$user" "$id"
id2=${id##*.}
@@ -212,7 +201,6 @@ menu_read(){
from=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $4}' < $datadir/boards/$board/list)
fromf=$([ "$(userget $from realname)" != "$from" ] && echo "From: $(userget $from realname) <$from>" || echo "From: $from")
printf '\n\n%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /'
- # printf '\n\n%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /' | pager2
total_in_thread=$(awk -v "file=$(echo "$file" | sed 's/ .*//')" -F" " '$6 == file' < $datadir/boards/$board/list | wc -l)
while prompt "($(($id2+1))/$total_in_thread) Ne${k}$([ $(($id2+1)) -eq $total_in_thread ] && printf "${e}")x${s}t ${k}$([ $id2 -eq 0 ] && printf "${e}")p${s}revious rep${k}$(check_reply_perm $board $user noprint)l${s}y ${k}b${s}oards b${k}a${s}ck ${k}h${s}elp" input
do