Restore cursor and clear screen on ctrl+c
This commit is contained in:
parent
4044fb6b92
commit
3459833a62
1 changed files with 3 additions and 0 deletions
3
fetch
3
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)
|
||||
|
|
Loading…
Reference in a new issue