raboof / nethogs

Linux 'net top' tool
GNU General Public License v2.0
3.17k stars 287 forks source link

Feature request: option to disable printing the "caption" at the top (Nethogs version x.x.x) #278

Open aglidden opened 2 months ago

aglidden commented 2 months ago

Would it be possible to add a flag to disable printing "NetHogs version x.x.x" at the top of the window? I like to run nethogs in an itty-bitty tmux pane and it would be 2 lines more space efficient if we could disable that.

I believe the relevant code is https://github.com/raboof/nethogs/blob/0fe341eebab15d2faf2ab170674acf7692f698cf/src/cui.cpp#L287-L288 and https://github.com/raboof/nethogs/blob/0fe341eebab15d2faf2ab170674acf7692f698cf/src/cui.cpp#L372-L376

Thank you for the awesome program, it's great!

raboof commented 2 months ago

sounds reasonable to me, would you be up for a PR?

aglidden commented 2 months ago

I haven't touched cpp in a couple decades (and then only in school) so it would very much be a monkey/typewriter situation, but I can muddle through it after getting an environment set up. I will take a look into it if no one better equipped has the time to get to it before I do. For the sake of code quality I'll hold off for a bit and give the big guns an opportunity to do it right first though, should they have the time. ;)