Skip to content

add --no-meters option to hide meters directly from CLI #1747

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

serg00ns
Copy link

Closes #1744

@BenBE BenBE added build system 🔧 Affects the build system rather then the user experience new feature Completely new feature labels Jul 27, 2025
@BenBE BenBE added this to the 3.5.0 milestone Jul 27, 2025
@BenBE
Copy link
Member

BenBE commented Jul 27, 2025

Given the "disable X" options all have uppercase short options so far, I'd suggest -H/--no-header. Else it might be a bit too close to -M, which disables the mouse support.

@Explorer09
Copy link
Contributor

Keep in mind that the hideMeters option in the State object also hides the tab names.

@serg00ns
Copy link
Author

Given the "disable X" options all have uppercase short options so far, I'd suggest -H/--no-header. Else it might be a bit too close to -M, which disables the mouse support.

Noticed that -H is already used, so maybe -B / --no-bars could work instead?
Happy to update if that’s okay.

@BenBE
Copy link
Member

BenBE commented Jul 27, 2025

Given some internal feedback (and related to the vacation season) there'll be some delay for the final decision of what the option will become. Until then, suggesting and discussing the possible option names is one task to prepare.

Another one (based on internal comments) is a possible issue with existing configuration options, which might be accidentally modified when the configuration is stored while a session with this config option is running.

@natoscott
Copy link
Member

IMO, either --no-meters or --no-header are the best choices (no strong preference here) as --no-bars is ambiguous with the FunctionBar, and it doesn't really capture the Meters anyway, which have many different non-Bar visuals too.

If we do this, I wonder if the 'hideFunctionBar' functionality should be exposed via a command line option as well BTW?

And the point @Explorer09 makes re the Tabs sounds like a (pre-existing) bug, no?

Finally, the man page will also need an update with this change.

@Explorer09
Copy link
Contributor

@natoscott

And the point @Explorer09 makes re the Tabs sounds like a (pre-existing) bug, no?

Perhaps it is because too few people tested the # hotkey in htop. I only noticed that when testing the new command line option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system 🔧 Affects the build system rather then the user experience new feature Completely new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CLI parameter to hide meters
4 participants