mirror of
https://github.com/dylanaraps/shfm.git
synced 2026-11-28 20:58:19 +00:00
properly do it for once
This commit is contained in:
1 file changed
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
term_setup() {
|
term_setup() {
|
||||||
|
stty=$(stty -g)
|
||||||
stty -icanon -echo
|
stty -icanon -echo
|
||||||
|
|
||||||
printf '\033[?1049h\033[?7l\033[?25l\033[2J\033[1;%sr' \
|
printf '\033[?1049h\033[?7l\033[?25l\033[2J\033[1;%sr' \
|
||||||
@@ -8,7 +9,7 @@ term_setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
term_reset() {
|
term_reset() {
|
||||||
stty icanon echo
|
stty "$stty"
|
||||||
|
|
||||||
printf '\033[?7h\033[?25h\033[2J\033[;r\033[?1049l'
|
printf '\033[?7h\033[?25h\033[2J\033[;r\033[?1049l'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user