Restore cursor and clear screen on ctrl+c

master
Dylan 10 years ago
parent 4044fb6b92
commit 3459833a62
  1. 3
      fetch

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

Loading…
Cancel
Save