From 2dad5357405ad33cfa792f04b3ab62a5d188841e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 19:06:32 +0200 Subject: Adding upstream version 1.4.34+dfsg. Signed-off-by: Daniel Baumann --- src/external_tools/functions.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 src/external_tools/functions.sh (limited to 'src/external_tools/functions.sh') 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" +} -- cgit v1.2.3