aboutsummaryrefslogtreecommitdiffstats
path: root/got
diff options
context:
space:
mode:
Diffstat (limited to 'got')
-rwxr-xr-xgot4
1 files changed, 2 insertions, 2 deletions
diff --git a/got b/got
index eadbe86..740e713 100755
--- a/got
+++ b/got
@@ -64,16 +64,16 @@ if [ "$1" = "-" ]; then
. "@etc@/@command@rc"
fi
+ tty_settings="$(stty --save)"
$display_function
$read_function
$login_function
+ stty "${tty_settings}"
else
# cannot get any other solution to work with `login`
# than to spawn a new process with the pipes pre-set
tty="@dev@/$1"
- tty_settings="$(stty --save)"
"$0" - "$@" > "${tty}" 2> "${tty}" < "${tty}"
- stty "${tty_settings}"
fi