fixed bug that overwrites saved stty settings

This commit is contained in:
Nathan Sketch 2021-08-06 09:57:03 -04:00
parent 696318e947
commit 0bf678fbcd
1 changed files with 1 additions and 1 deletions

2
shfm
View File

@ -22,7 +22,6 @@ esc() {
}
term_setup() {
stty=$(stty -g)
stty -icanon -echo
esc screen_alt h
esc DECAWM l
@ -270,6 +269,7 @@ main() {
cur=$1
term_resize
stty=$(stty -g)
term_setup
trap 'term_reset' EXIT INT