commit d2aed92b34ff521498b2047d489ced78d1dd86cb
parent 4d10a542226bc77111f4a984e06f29532f59690f
Author: hhvn <hayden@haydenvh.com>
Date: Wed, 3 Feb 2021 12:10:51 +0000
bin/interface.sh: do not clear between replies in menu_read
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bin/interface.sh b/bin/interface.sh
@@ -23,6 +23,7 @@ pager(){
}
menu_boards(){
+ clear
echo "$banner"
echo
printf '%- 20s Posts Description\n' 'Board'
@@ -82,6 +83,7 @@ menu_boards(){
}
menu_list(){
+ clear
echo "$banner"
echo
[ ! -f $datadir/boards/$board/list ] && echo "1 0 01-Jan-1970 root empty" > $datadir/boards/$board/list
@@ -175,6 +177,7 @@ pager2(){
menu_read(){
id2=${id##*.}
+ [ $id2 -eq 0 ] && clear
file=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $6 " " $7}' < $datadir/boards/$board/list)
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")
@@ -257,6 +260,7 @@ menu_read(){
}
menu_users(){
+ clear
echo "$banner"
echo
echo ================================================================================
@@ -344,10 +348,9 @@ menu_users(){
}
interface(){
- . $cwd/config.sh
+ clear
while true
do
- clear
case "$mode" in
boards) menu_boards ;;
users) menu_users ;;