aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-14 21:26:16 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-14 21:26:16 +0300
commitd9b90027ba74569780632bfba4c1b7e737838a40 (patch)
tree8c4a16696c5e7ae08f3c437303af74bcc44d3ed8
parent2841cecaa9a9abe395f799aa519937548de960bd (diff)
disable tty echo for the whole duration of wizard
-rwxr-xr-xinternal/wizard.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 97a98ab2..b72212d5 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -310,7 +310,6 @@ functions -M get_columns 0 0
function render_screen() {
{
hide_cursor
- stty -echo 2>/dev/null
while true; do
while true; do
typeset -gi wizard_columns='get_columns()'
@@ -362,7 +361,6 @@ function render_screen() {
done
done
} always {
- stty echo 2>/dev/null
show_cursor
}
}
@@ -1919,6 +1917,8 @@ else
local -ir has_truecolor=0
fi
+stty -echo 2>/dev/null
+
while true; do
local instant_prompt=verbose zshrc_content= zshrc_backup= zshrc_backup_u=
local -i zshrc_has_cfg=0 zshrc_has_instant_prompt=0 write_zshrc=0