summaryrefslogtreecommitdiffstats
path: root/Action.h
Commit message (Collapse)AuthorAgeFilesLines
* Relocate include of config.h from header to source modeuleBenny Baumann2023-12-261-2/+0
|
* Update includes based on IWYUBenny Baumann2023-12-261-1/+0
|
* Support dynamic screens with 'top-most' entities beyond processesSohaib Mohamed2023-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | This implements our concept of 'dynamic screens' in htop, with a first use-case of pcp-htop displaying things like top-filesystem and top-cgroups under new screen tabs. However the idea is more general than use in pcp-htop and we've paved the way here for us to collectively build mroe general tabular screens in core htop, as well. From the pcp-htop side of things, dynamic screens are configured using text-based configuration files that define the mapping for PCP metrics to columns (and metric instances to rows). Metrics are defined either directly (via metric names) or indirectly via PCP derived metric specifications. Value scaling and the units displayed is automatic based on PCP metric units and data types. This commit represents a collaborative effort of several months, primarily between myself, Nathan and BenBE. Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com> Signed-off-by: Nathan Scott <nathans@redhat.com>
* Introduce Machine class for host-specific info (split from ProcessList)Nathan Scott2023-05-081-6/+5
| | | | | | | | | | | First stage in sanitizing the process list structure so that htop can support other types of lists too (cgroups, filesystems, ...), in the not-too-distant future. This introduces struct Machine for system-wide information while keeping process-list information in ProcessList (now much less). Next step is to propogate this separation into each platform, to match these core changes.
* Drop references to 'Process' in generic screen codeNathan Scott2023-05-081-3/+3
| | | | | | | | | | | | Prepare the way for making screen tabs more generalised, able to cater to entities other than processes. 'actionTogglePauseProcessUpdate' -> 'actionTogglePauseUpdate' 'pauseProcessUpdate' -> 'pauseUpdate' 'hideProcessSelection' -> 'hideSelection' 'hideProcessSelection' -> 'hideSelection' Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
* Toggle the header meters with pound keyChristian Göttsche2022-10-221-0/+1
| | | | | | | | | Show/hide the header meters with the pound ('#') key. Useful in cases where the header is too large and occupies essential parts of the screen, especially in settings (see #1108). It is only stored as a runtime state, not a persistent setting; to remove the header permanently one can delete all active meters.
* Introduce screen tabsHisham Muhammad2021-12-071-0/+2
| | | | This is a forward port (by nathans) of Hisham's original code.
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* IWYU updateChristian Göttsche2021-08-251-1/+1
|
* Abstract resize handling by adding a new Htop reactionChristian Göttsche2021-08-221-0/+1
|
* Action: specify implication in code not in commentsChristian Göttsche2021-08-221-8/+8
|
* Use MainPanel type in State structChristian Göttsche2021-02-051-1/+4
| | | | | | | | 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.
* Add option to hide the Function BarChristian Göttsche2021-01-041-0/+4
| | | | | | | | | | 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
* Hide process selection on ESCChristian Göttsche2020-11-281-0/+1
| | | | | | Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
* XUtils string related updatesChristian Göttsche2020-10-191-0/+2
| | | | | | | | | | - allow count out-parameter of String_split() to be NULL - introduce xStrndup() - do not allow NULL pointers passed to String_eq() it is not used in any code - implement String_startsWith(), String_contains_i() and String_eq() as inline header functions - adjust several conversion issues
* Make all required includes explicitBenny Baumann2020-10-181-0/+5
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Add key to pause process list updatesChristian Göttsche2020-10-121-0/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Use strict function prototypesChristian Göttsche2020-09-181-2/+2
| | | | int foo(); declares a function taking any number of arguments.
* Remove some unused #includesHugo Musso Gualandi2020-09-121-4/+3
| | | | As suggested by cppclean.
* Clean up some code duplication in the header filesHugo Musso Gualandi2020-09-121-4/+0
| | | | | | | | | | | | | PR htop-dev/htop#70 got rid of the infrastructure for generating header files, but it left behind some code duplication. Some of cases are things that belong in the header file and don't need to be repeated in the C file. Other cases are things that belong in the C file and don't need to be in the header file. In this commit I tried to fix all of these that I could find. When given a choice I preferred keeping things out of the header file, unless they were being used by someone else.
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-3/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Remove superfluous 'extern's from function declarations.Zev Weiss2020-09-031-5/+5
| | | | | | | | Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
* Axe automated header generation.Zev Weiss2020-09-031-2/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Update header files to match whitespace changes in source filesNathan Scott2020-08-221-1/+0
|
* Merge branch 'hishamhm-pull-857'Nathan Scott2020-08-201-1/+1
|\
| * Don't follow process when selecting non-process-specific optionswangqr2019-02-121-1/+1
| | | | | | | | | | | | | | | | Disable the follow process logic in Action_pickFromVector(), when selecting sort order or user filter, since they don't apply on specific process. Fix #856
* | Re-generate all headers with latest scripts/MakeHeader.pyNathan Scott2020-08-181-5/+5
|/ | | | Sync-up missing extern declarations for many functions.
* Auto-follow process after a search.Hisham2016-05-051-0/+2
| | | | See #237.
* 'e' displays environment of current processMichael Klein2015-12-021-0/+1
| | | | | - uses sysctl(KERN_PROCARGS2) on *BSD - doesn't work on Linux yet
* handle clicks on panel header lineHisham Muhammad2015-03-241-0/+2
|
* Tempus fugit.Hisham Muhammad2015-03-231-1/+1
| | | | | | Conflicts: htop.c htop.h
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-1/+1
|
* Working on integration of IncSet in new branch.Hisham Muhammad2015-03-221-1/+0
|
* Another mega-patch for the refactoring process.Hisham Muhammad2015-01-231-6/+0
| | | | | Kinda runs, but functionality from the original main loop is still missing. Patience.
* Sorry about the mega-patch.Hisham Muhammad2015-01-211-1/+16
| | | | | This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
* Builds on Linux again!Hisham Muhammad2014-11-241-0/+3
|
* Changes for supporting separate platform subdirectories.Hisham Muhammad2014-11-241-0/+42

© 2014-2024 Faster IT GmbH | imprint | privacy policy