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

Add command line flags for which windows to show #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RyanJennings1
Copy link

Add --help flag and also flags for which windows to show.

gtop [-cpu|-mem|-net|-disk|-proc]
+
+    With no flags supplied gtop runs all on default
+    Adding flags will show only the windows for the flags supplied
+
+    -cpu: Show the cpu usage window
+    -mem: Show the memory usage window
+    -net: Show the network history window
+    -disk: Show the disk usage window
+    -proc: Show the running processes window

But this just turns the windows on or off basically, it doesn't resize the windows sizes it shows a blank box if the window is off. There will be a lot of changes to code and order of functions to correctly resize each window depending on which are selected.

Any feedback?

This was referenced Aug 14, 2017
@pawamoy
Copy link

pawamoy commented Aug 16, 2017

I don't use swap so it would be cool if we were also able to display/hide the swap part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants