I would like to be able to collapse all the trees in the default view of htop. Is there a way to achieve that at once, instead of selecting every tree and hitting F6?
As per this github issue it is not implemented but marked as
AFAIK "t" is the hotkey for expansion and collapsing tree view in htop.
i don't know about any option to expand/collapse individual branches in htops tree view (or any other ncurse based software*) i would suggest to dont presume things of text based applications from things you have learned from graphical ones.**
You can (only) enable/disable tree based view using the function key nr. 5
*:ive got somehow used to the different designe pattern in text based (dos era and ncurse or similar based unics ones) and graphical applications. This collapse tree thing was, in my eyes, a thing invented in windows...
**: i would sugesst anyone who want to get used to unix systems disable there gui for at least a week and learn things again from the button up...