Skip to content

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.

@Explorer09
Copy link
Contributor

It's better to rebase the branch onto main rather than cross-merge it (to keep the commit history clean). Also squash the two commits into one.

@fasterit
Copy link
Member

fasterit commented Sep 3, 2025

I like @natoscott's comments, so I suggest to implement both --no-meters and --no-functionbar. I don't think these need short options at all as they are very "special interest". These need to be reflected in the man page as well.

BTW { echo -n "#" ; cat ; } | htop works.

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
5 participants