summaryrefslogtreecommitdiffstats
path: root/Action.c
AgeCommit message (Collapse)Author
2022-05-30Merge branch 'fix-allBranchesCollapsed' of tanriol/htopDaniel Lange
2022-05-30actionExpandOrCollapseAllBranches: NOP in flat modeDenis Lisov
This shortcut does not have any visible effect in flat mode, so disable it completely to avoid possible confusion.
2022-05-21Fix typo, thx Explorer09Benny Baumann
2022-05-20Mark item separator in default color on help screenWHR
Closes: #1014
2022-05-20fix typo (dist -> disk)Christian Hesse
This was changed in commit 37e01cbe33714c8fde72220555b92c7d8585d127, probably unintentional.
2022-05-20Colorize process state characters in help screenBenny Baumann
Thanks to @Low-power for the idea Closes #1010
2022-05-19Call mousemask(3X) to truly enable or disable mouse controlWHR
2022-05-13Increasing niceness is also disabled by --readonly modeDaniel Lange
2022-04-30Document screen tab switching (TAB, Shift-TAB keys)Daniel Lange
2022-02-13ProcessList: sort before panel rebuild if neededDenis Lisov
2022-01-13Help: Linux swap consistencyKevin Bracey
On the help screen's depiction of the swap bar, the / separator between used and cache should be coloured for consistency with the other bars. I tried removing the coloured /s from the other bars to make them consistent, but found that less visually appealing.
2021-12-07Introduce screen tabsHisham Muhammad
This is a forward port (by nathans) of Hisham's original code.
2021-12-05Pre-select the last sent signal in SignalsPanelChristian Göttsche
Instead of pre-selecting SIGTERM every time, select the signal last send in the same htop session. Closes: #862
2021-09-22Update license headers to explicitly say GPLv2+Daniel Lange
2021-08-22Simplify adding pages in one placeBenny Baumann
2021-08-22Abstract resize handling by adding a new Htop reactionChristian Göttsche
2021-08-18Spell out virtualizedDaniel Lange
2021-08-17Apply suggestions from code reviewNathan Scott
Co-authored-by: BenBE <BenBE@geshi.org>
2021-08-17Ensure DynamicColumn hash lookups never see NULL pointersNathan Scott
This cannot happen in these code locations, but for the purposes of static checkers like Coverity scan (and for future proofing), add two more guards on NULL hash table entry pointers.
2021-08-16Simplify Action_pickFromVector() width parameter usageChristian Göttsche
Pass one less instead of subtracting one inside the function.
2021-08-13PCP: support for 'dynamic columns' added at runtimeSohaib Mohamed
Implements support for arbitrary Performance Co-Pilot metrics with per-process instance domains to form new htop columns. The column-to-metric mappings are setup using configuration files which will be documented via man pages as part of a follow-up commit. We provide an initial set of column configurations so as to provide new capabilities to pcp-htop: including configs for containers, open fd counts, scheduler run queue time, tcp/udp bytes/calls sent/recv, delay acct, virtual machine guests, detailed virtual memory, swap. Note there is a change to the configuration file path resolution algorithm introduced for 'dynamic meters'. First, look in any custom PCP_HTOP_DIR location. Then iterate, in priority order, users home directory, then local sysadmins files in /etc/pcp/htop, then readonly configuration files below /usr/share/pcp/htop. This final location becomes the preferred place for our own shipped meter and column files. The Settings file (htoprc) writing code is updated to not using the numeric identifier for dynamic columns. The same strategy used for dynamic meters is used here where we write Dynamic(name) so the name can be setup once more at start. Regular (static) columns writing to htoprc - i.e. numerically indexed - is unchanged.
2021-07-18Enable affinity support for non-LinuxChristian Göttsche
sched_getaffinity() and sched_setaffinity() are also available on BSDs. Remove the Linux restraint.
2021-07-18Rework CPU countingChristian Göttsche
Currently htop does not support offline CPUs and hot-swapping, e.g. via echo 0 > /sys/devices/system/cpu/cpu2/online Split the current single cpuCount variable into activeCPUs and existingCPUs. Supersedes: #650 Related: #580
2021-07-15Whitespace around operatorsBenny Baumann
2021-07-15Split statements that should go onto multiple linesBenny Baumann
2021-04-21Document '?' key to reach the help screenBenny Baumann
2021-04-14Add read-only optionChristian Göttsche
Add command line option to disable all system and process changing features.
2021-03-24Add MEMORY_SHARED to help screenDavid Zarzycki
2021-03-17Action: merge conditionsChristian Göttsche
2021-03-14Improve process followingChristian Göttsche
- stay in follow mode on sort inversion (I) - stay in follow mode after viewing help screen (h) - select parent process (where available) when having followed a thread and hiding these (H) Closes: #560
2021-03-03Follow followed process when switching thread visibilitiesChristian Göttsche
Do not stop following a process when switching the visibility of userland or kernel threads. Related: #557
2021-02-16Shorten keyboard help to fit default screen widthDaniel Lange
2021-02-13Option and key ("*") to collapse / expand all branches under PID 1Daniel Lange
(and PID 2 if kernel threads are shown) Based on hishamhm/htop#510 by Krishna Chaitanya, B Closes #68
2021-02-07Remove force sort order to ASC when returning to tree modeDaniel Lange
Bug found by BenBE via IRC
2021-02-05Use MainPanel type in State structChristian Göttsche
The State struct holds a pointer to the main process panel. Use the distinct MainPanel type, to improve maintainability regrading its usage. This avoids usages of down-casts from Panel to MainPanel, only up-casts from MainPanel to Panel are now required.
2021-01-27Drop invalid todoChristian Göttsche
The surrounding code has nothing to do with colors
2021-01-11Linux: Add SwapCached to the swap meterDavid Zarzycki
According to the Linux kernel documentation, "SwapCached" tracks "memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)."
2021-01-11Mark several non-modified pointer variables constChristian Göttsche
2021-01-06Hashtable: use more distinct typename for key typeChristian Göttsche
2021-01-04Panel_new: reorder argumentsChristian Göttsche
Reorder owner and type so they match the order of Panel_init
2021-01-04Add option to hide the Function BarChristian Göttsche
Support three settings: - Always show Function Bar - Always hide the Function Bar, except in Infoscreens (Env/Locks...) and when editing the search and filter mode - Hide the Function Bar on ESC until the next user input Closes: #439
2021-01-04Action: drop resize callbackChristian Göttsche
The supervising ScreenManager will resize all Panels
2021-01-01Action: remove trivial wrapper functionChristian Göttsche
2020-12-23Added keybind 'N' for sorting by PIDJake Mannens
2020-12-23Position help labels one step to the rightJake Mannens
2020-12-24Remove 'n' and 'N' search inc/dec keybindsJake Mannens
2020-12-22Merge branch 'resize_bar' of https://github.com/cgzones/htop into ↵Nathan Scott
cgzones-resize_bar
2020-12-21De-lazy @cgzones :)Daniel Lange
2020-12-21Action: sort key binding assignmentsChristian Göttsche
Avoid accidental duplicate usage.
2020-12-20Rework drawing of FunctionBarChristian Göttsche
Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402