summaryrefslogtreecommitdiffstats
path: root/src/external_tools/functions.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
commit2dad5357405ad33cfa792f04b3ab62a5d188841e (patch)
treeb8f8893942060fe3cfb04ac374cda96fdfc8f453 /src/external_tools/functions.sh
parentInitial commit. (diff)
downloadremmina-2dad5357405ad33cfa792f04b3ab62a5d188841e.tar.xz
remmina-2dad5357405ad33cfa792f04b3ab62a5d188841e.zip
Adding upstream version 1.4.34+dfsg.upstream/1.4.34+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/external_tools/functions.sh')
-rwxr-xr-xsrc/external_tools/functions.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/external_tools/functions.sh b/src/external_tools/functions.sh
new file mode 100755
index 0000000..2f70eaf
--- /dev/null
+++ b/src/external_tools/functions.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Awaits user key press.
+pause ()
+{
+ echo "Press any key to continue…"
+ OLDCONFIG=$(stty -g)
+ stty -icanon -echo min 1 time 0
+ dd count=1 2>/dev/null
+ stty $OLDCONFIG
+}
+
+# Set terminal title for gnome-terminal and many others
+settitle() {
+ echo -n -e "\033]0;${remmina_term_title}\007"
+}