0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 11:37:26 +01:00

Hide cursor while selecting version from menu

This commit is contained in:
John Gee 2018-09-29 17:58:00 +12:00
parent 6ad75d9092
commit 9fb6eefaa2

26
bin/n
View File

@ -121,12 +121,18 @@ set_arch() {
# #
enter_fullscreen() { enter_fullscreen() {
tput smcup # Set cursor to be invisible
tput civis 2> /dev/null
# Save screen contents
tput smcup 2> /dev/null
stty -echo stty -echo
} }
leave_fullscreen() { leave_fullscreen() {
tput rmcup # Set cursor to normal
tput cnorm 2> /dev/null
# Restore screen contentsq
tput rmcup 2> /dev/null
stty echo stty echo
} }
@ -207,22 +213,6 @@ err_no_installed_print_help() {
exit 1 exit 1
} }
#
# Hide cursor.
#
hide_cursor() {
printf "\e[?25l"
}
#
# Show cursor.
#
show_cursor() {
printf "\e[?25h"
}
# #
# Output version after selected. # Output version after selected.
# #