Restore cursor and clear screen on ctrl+c

This commit is contained in:
Dylan 2016-01-21 10:56:55 +11:00
parent 4044fb6b92
commit 3459833a62
1 changed files with 3 additions and 0 deletions

3
fetch
View File

@ -1379,6 +1379,9 @@ done
# Call Functions and Finish Up {{{ # Call Functions and Finish Up {{{
# Restore cursor and clear screen on ctrl+c
trap 'printf "\e[?25h"; clear; exit' 2
# Get lines and columns # Get lines and columns
lines=$(tput lines) lines=$(tput lines)
columns=$(tput cols) columns=$(tput cols)