Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide cursor while selecting version from menu #528

Merged
merged 1 commit into from
Apr 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions bin/n
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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.
#
Expand Down