This repository was archived by the owner on Sep 8, 2020. It is now read-only.
Added an option to disable the mouse.#923
Open
MartinJM wants to merge 2 commits intohishamhm:masterfrom
Open
Conversation
Author
|
I found something I hadn't considered before. When starting the program with the flag to disable the mouse, and then changing another option within htop, the setting for the mouse is saved to the settings file as well. This means the mouse is disabled without an easy method to turn it on again. For this reason, I have added the option to the display options as well. This doesn't change the behaviour, but it makes it more clear to the user, and gives the user a method to change it. |
Collaborator
|
Merged here: htop-dev/htop@011125d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I saw Issue #900 and decided to take a look at it.
I have added an option in the Settings that stores if the mouse should be enabled or not. This can be toggled using a command line flag ("-m" or "--no-mouse"). If you want to permanently disable the mouse, the setting can also be set in the config file.
Apologies for the edits on the empty lines. The editor that I used removes whitespace if the line is empty otherwise. This is my first pull request, so if there is something I can do better, please let me know so I can learn from it.