From af39b2b2ee7cda921ed86f992c4f4edf7f3aaed6 Mon Sep 17 00:00:00 2001 From: Daniel Lublin Date: Fri, 27 Oct 2017 10:30:13 +0200 Subject: [PATCH] git-effort: restore normal (visible) cursor properly If I understand GNU* correctly, cnorm should be used to undo `civis` (make invisible). `cvvis` is just another abnormal mode, namely "very visible". *) https://www.gnu.org/software/termutils/manual/termutils-2.0/html_chapter/tput_1.html --- bin/git-effort | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-effort b/bin/git-effort index c2c65f4..ee3add4 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -39,7 +39,7 @@ hide_cursor() { # show_cursor_and_cleanup() { - tputq cvvis + tputq cnorm tputq sgr0 rm "$tmp" > /dev/null 2>&1 exit 0