From f45403c908e1ab2496d7798d93b611b07a8a70fd Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Mon, 21 Sep 2020 15:38:00 +0200 Subject: [PATCH] #1569 Refresh Info Screen in Loop (#1572) --- home.admin/00mainMenu.sh | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index 079e82ca6..f341f6b25 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -159,9 +159,25 @@ case $CHOICE in echo "Gathering Information (please wait) ..." walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted") if [ ${walletLocked} -eq 0 ]; then - /home/admin/00infoBlitz.sh - echo "Screen is not refreshing itself ... press ENTER to continue." - read key + while : + do + + # show the same info as on LCD screen + /home/admin/00infoBlitz.sh + + # wait 2 seconds for key input + echo "Screen is updating in loop .... keep 'x' pressed to exit to menu." + read -n 1 -t 2 keyPressed + + # check if user wants to abort session + if [ "${keyPressed}" = "x" ]; then + echo "" + echo "Returning to menu ....." + sleep 4 + break + fi + done + else /home/admin/00raspiblitz.sh exit 0