From de08f6de8bdba3227cde8e5310d7380dd0816c3a Mon Sep 17 00:00:00 2001 From: openoms Date: Tue, 25 May 2021 14:22:23 +0100 Subject: [PATCH] _commands: status command for parallel chains --- home.admin/_commands.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/home.admin/_commands.sh b/home.admin/_commands.sh index 03d9c0fbb..b34c88308 100755 --- a/home.admin/_commands.sh +++ b/home.admin/_commands.sh @@ -126,7 +126,23 @@ function torthistx() { # start the status screen in the terminal function status() { echo "Gathering data - please wait a moment..." - sudo -u pi /home/admin/00infoLCD.sh --pause 0 + while : + do + # show the same info as on LCD screen + /home/admin/00infoBlitz.sh $1 $2 + # wait 6 seconds for user exiting loop + echo "" + echo -en "Screen is updating in a loop .... press 'x' now to get back to menu." + read -n 1 -t 6 keyPressed + echo -en "\rGathering information to update info ... please wait. \n" + # check if user wants to abort session + if [ "${keyPressed}" = "x" ]; then + echo + echo "Returning to menu ....." + sleep 4 + break + fi + done } # command: lnbalance