diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-09-30 18:48:35 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-09-30 18:48:35 +0200 |
| commit | 403a41f8f2a6077d800ce7dae115a0cc3bd27a76 (patch) | |
| tree | b75d58c758bffd2991ac8fb40bc77840778a1001 | |
| parent | add comment on mem usage in readme (diff) | |
| download | gates-of-tartaros-403a41f8f2a6077d800ce7dae115a0cc3bd27a76.tar.gz gates-of-tartaros-403a41f8f2a6077d800ce7dae115a0cc3bd27a76.tar.bz2 gates-of-tartaros-403a41f8f2a6077d800ce7dae115a0cc3bd27a76.tar.xz | |
whoops, save and restore the tty not console
Signed-off-by: Mattias Andrée <maandree@operamail.com>
| -rwxr-xr-x | got | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
