mirror of
https://github.com/tj/n.git
synced 2024-11-22 02:57:32 +01:00
Hide cursor while selecting version from menu
This commit is contained in:
parent
6ad75d9092
commit
9fb6eefaa2
26
bin/n
26
bin/n
@ -121,12 +121,18 @@ set_arch() {
|
||||
#
|
||||
|
||||
enter_fullscreen() {
|
||||
tput smcup
|
||||
# Set cursor to be invisible
|
||||
tput civis 2> /dev/null
|
||||
# Save screen contents
|
||||
tput smcup 2> /dev/null
|
||||
stty -echo
|
||||
}
|
||||
|
||||
leave_fullscreen() {
|
||||
tput rmcup
|
||||
# Set cursor to normal
|
||||
tput cnorm 2> /dev/null
|
||||
# Restore screen contentsq
|
||||
tput rmcup 2> /dev/null
|
||||
stty echo
|
||||
}
|
||||
|
||||
@ -207,22 +213,6 @@ err_no_installed_print_help() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
#
|
||||
# Hide cursor.
|
||||
#
|
||||
|
||||
hide_cursor() {
|
||||
printf "\e[?25l"
|
||||
}
|
||||
|
||||
#
|
||||
# Show cursor.
|
||||
#
|
||||
|
||||
show_cursor() {
|
||||
printf "\e[?25h"
|
||||
}
|
||||
|
||||
#
|
||||
# Output version after selected.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user