reset terminal temporarily when subcommands are run. Might fix #12

This commit is contained in:
Dylan Araps 2020-08-07 10:36:39 +03:00
parent b9f475ac6b
commit 0bd79a5f00
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 0 deletions

2
shfm
View File

@ -91,11 +91,13 @@ cmd_run() {
esc screen_alt h
esc DECTCEM h
esc DECSTBM
stty "$stty"
"$@" ||:
esc DECSTBM 1 "$((LINES - 2))"
esc screen_alt l
esc DECTCEM l
esc CUP "$y2"
stty -icanon -echo
}
file_escape() {