From 0bd79a5f003eaf01dc9ef6f9fe51c4a8074e61f0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 7 Aug 2020 10:36:39 +0300 Subject: [PATCH] reset terminal temporarily when subcommands are run. Might fix #12 --- shfm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shfm b/shfm index 5d1058b..76f4115 100755 --- a/shfm +++ b/shfm @@ -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() {