Restore cursor and clear screen on ctrl+c
This commit is contained in:
parent
4044fb6b92
commit
3459833a62
3
fetch
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)
|
||||||
|
|
Reference in New Issue