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

3
fetch
View file

@ -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)