aboutsummaryrefslogtreecommitdiffstats
path: root/SOURCE/CORE
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2025-08-15 10:39:15 +0200
committerDanilo M. <danix@danix.xyz>2025-08-15 10:39:15 +0200
commit6c563f788d60acab6947637ea6e05eeef103abd1 (patch)
treeaa33358a47ceca07ce7713eab6657d2d5ed48c1e /SOURCE/CORE
parent03d92b35dd555fc08958679e9bf584dacbe14e39 (diff)
downloadbash-notes-6c563f788d60acab6947637ea6e05eeef103abd1.tar.gz
bash-notes-6c563f788d60acab6947637ea6e05eeef103abd1.zip
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.HEADmaster
Diffstat (limited to 'SOURCE/CORE')
-rw-r--r--SOURCE/CORE/helpers.sh7
1 files changed, 7 insertions, 0 deletions
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
+}
+