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

Conversation

shadowspawn
Copy link
Collaborator

Pull Request Template:

Describe what you did

Hide cursor while selecting node version from menu (i.e. nvh with no parameters).

How you did it

Added calls to tput to hide and show cursor in enter_fullscreen and leave_fullscreen. These two routines already use tput to save and restore the screen contents.

Added redirection to suppress stderr just in case tput calls not supported by termcap.

Deleted unused code to hide and show cursor using direct escape sequences.

How to verify it doesn't effect the functionality of n

Cosmetic only, not functional.
Tried the termcap calls on Mac High Sierra, Mac Mojave, Ubuntu, Centos, and archlinux.

If this solves an issue, please put issue in PR notes.

On macOS there was a cursor left on screen below version list during version selection from menu, and sometimes a padlock would appear while moving selected version using arrow keys.

If this solves an issue, please include the output of issue that had problems and then the fixed output from the same command.

(graphic difference)

Squash any unnecessary commits to keep history clean as possible

Place description for the changelog in PR so we can tally all changes for any future release

Hide cursor while selecting node version from currently installed versions using menu.

@shadowspawn
Copy link
Collaborator Author

Merged to develop for next release.

@shadowspawn shadowspawn merged commit 9fb6eef into tj:master Apr 5, 2019
@shadowspawn shadowspawn deleted the feature/n-cursor branch April 5, 2019 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant