From 6c563f788d60acab6947637ea6e05eeef103abd1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 15 Aug 2025 10:39:15 +0200 Subject: added functionality to keep the program open after an operation finishes. This is particularly useful in transient terminal windows, so that the user can see the output and then close the window by hitting any key. --- SOURCE/CORE/helpers.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'SOURCE/CORE') diff --git a/SOURCE/CORE/helpers.sh b/SOURCE/CORE/helpers.sh index 3f013f2..f0d15d2 100644 --- a/SOURCE/CORE/helpers.sh +++ b/SOURCE/CORE/helpers.sh @@ -84,3 +84,10 @@ random_title() { echo $OUTPUT } +# Keep the application alive until the user decides to exit. +exitwait() { + echo "Press any key to exit.." + read -r -n 1 + exit 0 +} + -- cgit v1.2.3