mirror of https://github.com/dylanaraps/shfm.git
reset terminal temporarily when subcommands are run. Might fix #12
This commit is contained in:
parent
b9f475ac6b
commit
0bd79a5f00
2
shfm
2
shfm
|
@ -91,11 +91,13 @@ cmd_run() {
|
||||||
esc screen_alt h
|
esc screen_alt h
|
||||||
esc DECTCEM h
|
esc DECTCEM h
|
||||||
esc DECSTBM
|
esc DECSTBM
|
||||||
|
stty "$stty"
|
||||||
"$@" ||:
|
"$@" ||:
|
||||||
esc DECSTBM 1 "$((LINES - 2))"
|
esc DECSTBM 1 "$((LINES - 2))"
|
||||||
esc screen_alt l
|
esc screen_alt l
|
||||||
esc DECTCEM l
|
esc DECTCEM l
|
||||||
esc CUP "$y2"
|
esc CUP "$y2"
|
||||||
|
stty -icanon -echo
|
||||||
}
|
}
|
||||||
|
|
||||||
file_escape() {
|
file_escape() {
|
||||||
|
|
Loading…
Reference in New Issue