From 3459833a62648b49c9a6afbfcdce170ce49d3258 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 21 Jan 2016 10:56:55 +1100 Subject: [PATCH] Restore cursor and clear screen on ctrl+c --- fetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fetch b/fetch index 833a2eeb..cc418e77 100755 --- a/fetch +++ b/fetch @@ -1379,6 +1379,9 @@ done # Call Functions and Finish Up {{{ +# Restore cursor and clear screen on ctrl+c +trap 'printf "\e[?25h"; clear; exit' 2 + # Get lines and columns lines=$(tput lines) columns=$(tput cols)