summaryrefslogtreecommitdiffstats
path: root/DisplayOptionsPanel.c
Commit message (Collapse)AuthorAgeFilesLines
* Update includes based on IWYUBenny Baumann2023-12-261-0/+1
|
* Fix code styleBenny Baumann2023-12-261-28/+29
|
* Support dynamic screens with 'top-most' entities beyond processesSohaib Mohamed2023-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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 Row and Table classes for screens beyond top-processesNathan Scott2023-08-301-1/+1
| | | | | | | | | This commit refactors the Process and ProcessList structures such they each have a new parent - Row and Table, respectively. These new classes handle screen updates relating to anything that could be represented in tabular format, e.g. cgroups, filesystems, etc, without us having to reimplement the display logic repeatedly for each new entity.
* Add option to shadow path prefixesChristian Göttsche2023-02-031-0/+1
| | | | | | | | | Shadow path prefixes which are used by distributions, like /usr/bin/ /usr/sbin/ /bin/ /sbin/ /usr/libexec/
* TUI-setup for 'hide running in container' optionvaldaarhun2022-08-291-0/+1
|
* Refactor code for rendering command line cacheBenny Baumann2022-05-311-0/+1
| | | | Fixes #1008
* Add some headers in the Setup -> Display options panelDaniel Lange2022-05-271-1/+12
|
* Add note that the Tree view setting is per Screen tab nowDaniel Lange2022-04-301-1/+1
|
* Introduce screen tabsHisham Muhammad2021-12-071-3/+4
| | | | This is a forward port (by nathans) of Hisham's original code.
* Elaborate the highlighting of outdated/deleted executables and librariesBenny Baumann2021-10-191-1/+1
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* ScreenManager: reduce ScreenManager_resizeChristian Göttsche2021-08-221-1/+1
| | | | | | | | | | | | | The main change is the header hight being not included in y1. This is important if a sub-manager gets resized, e.g. a resize while editing the Settings or in a pickFromVector selection, and afterwards, then the sub-manager is closed, the super-ScreenManager gets resized, it uses the correct header hight. The header hight might have been changed since the last resize of the super-manager in the Settings by adding/removing some meters. This fixes new meters being hidden after added at runtime after a resize in the main window.
* Disable mouse option when support is unavailablenia2021-07-151-0/+2
|
* Whitespace around operatorsBenny Baumann2021-07-151-1/+1
|
* Allow for highlighting of deleted executables to be configuredBenny Baumann2021-05-231-0/+1
| | | | Fixes #383
* Use `#if defined()` syntax when `#elif defined()` is presentBenny Baumann2021-03-211-1/+1
| | | | | | | This prefers the `#if defined()` syntax over the `#ifdef` variant whenever there's also a `#elif defined()` clause, thus making the multiple branching structure more obvious and the overall use more consistent.
* Merge pull request #436 from cgzones/freebsdGraham Inggs2021-03-181-2/+10
|\ | | | | | | FreeBSD: add support for CPU frequency and temperature Tested on two physical systems running FreeBSD 12.1
| * FreeBSD: add support for CPU frequency and temperatureChristian Göttsche2021-02-051-2/+10
| |
* | Separate data-update and drawing of headerChristian Göttsche2021-03-041-0/+1
| |
* | Option and key ("*") to collapse / expand all branches under PID 1Daniel Lange2021-02-131-0/+1
|/ | | | | | | (and PID 2 if kernel threads are shown) Based on hishamhm/htop#510 by Krishna Chaitanya, B Closes #68
* Clarify that only the main screen function bar is optionally hiddenDaniel Lange2021-01-111-1/+1
|
* Add option to hide the Function BarChristian Göttsche2021-01-041-0/+1
| | | | | | | | | | 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
* Add "Tree view is always sorted by PID" option to mimic htop 2 behaviorHisham Muhammad2020-12-191-0/+1
|
* IWYU updateChristian Göttsche2020-12-061-1/+0
|
* Dynamically load libsensors at runtimeChristian Göttsche2020-12-021-2/+2
|
* Add support to change numeric options in settings screenChristian Göttsche2020-11-251-32/+55
| | | | Like delay or highlightDelaySecs
* Improve Fahrenheit temperature configuration textChristian Göttsche2020-11-251-1/+1
|
* Group the "Merge Command" related options visuallyBenny Baumann2020-11-241-2/+2
|
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-0/+3
|
* Remove unnecessary parensBenny Baumann2020-11-211-1/+1
|
* Show CPU temperature in CPU meterChristian Göttsche2020-11-161-0/+4
| | | | | Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
* Highlight new and old processes (#74)Adam Saponara2020-10-301-0/+1
|
* Merge branch 'number-cpus-from-zero' of zevweiss/htopDaniel Lange2020-10-201-1/+1
|\ | | | | | | | | * This changes the default to count CPUs from zero (instead of starting at one) * Settings logic is inverted, backwards compatibility is preserved
| * Number CPUs from zero by default.Zev Weiss2020-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | Numbering from one is idiosyncratic and inconsistent with basically everything else in the world; it doesn't make much sense as default behavior. All naming is updated to reflect that numbering from one is a non-default, opt-in option. The old label of the flag saved in htoprc ("cpu_count_from_zero") is still supported for backwards compatibility with existing configs, however.
* | Make all required includes explicitBenny Baumann2020-10-181-2/+7
| | | | | | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* | Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
| |
* | Move xAsprintf, xSnprintf and xStrdup to StringUtils.hBenny Baumann2020-10-161-3/+4
| |
* | Mark Object instances constChristian Göttsche2020-10-071-1/+1
| |
* | Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
| |
* | Do not drop qualifier in castChristian Göttsche2020-09-241-3/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ListItem.c:73:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj1 = (ListItem*) cast1; ^ ListItem.c:74:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj2 = (ListItem*) cast2; ^ Process.c:434:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p1 = (Process*)v1; ^ Process.c:435:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p2 = (Process*)v2; ^ Process.c:441:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ Process.c:443:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v1; ^ Process.c:444:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v2; ^ Process.c:446:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v1; ^ Process.c:447:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v2; ^ AffinityPanel.c:37:16: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->text); ^ AffinityPanel.c:39:19: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->indent); ^ linux/LinuxProcess.c:294:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ linux/LinuxProcess.c:296:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:297:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v2; ^ linux/LinuxProcess.c:299:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:300:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v2; ^ linux/LinuxProcessList.c:62:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* a = (TtyDriver*) va; ^ linux/LinuxProcessList.c:63:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* b = (TtyDriver*) vb; ^ linux/Battery.c:130:21: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] free((char *) isOnline); ^ linux/Battery.c:197:26: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/type", entryName); ^ linux/Battery.c:209:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/uevent", entryName); ^ linux/Battery.c:262:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/online", entryName); ^
* Revert the vim_mode setting for now, needs a rethinkNathan Scott2020-09-151-1/+0
| | | | | | | | | | | | | There have been too many bugs reported in vim_mode, and the proposed fixes are increasingly fragile - hence we have decided to back it out for now. For reference: https://github.com/htop-dev/htop/issues/69 https://github.com/htop-dev/htop/pull/37 https://github.com/htop-dev/htop/pull/106 The whitespace changes also arrived in commit 12805f61d not sure what that was about, but backed out as well.
* Axe automated header generation.Zev Weiss2020-09-031-13/+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.
* add toggle for vim mode in optionsckath2020-08-291-0/+1
|
* Merge branch 'ci-hwloc-job' of https://github.com/bertwesarg/htop into ↵Nathan Scott2020-08-261-0/+3
| | | | bertwesarg-ci-hwloc-job
* Merge branch 'hishamhm-pull-932'Nathan Scott2020-08-201-0/+2
|\
| * Add a display option to hide CPU usage number from CPU meter.Arnavion2019-08-101-0/+1
| |
| * Add new display option to also show CPU frequency in CPU meters.Arnavion2019-08-091-0/+1
| | | | | | | | | | | | | | | | The option is only implemented on Linux. On other platforms, and on Linuxes that do not expose the relevant sysfs file, the frequency will be 0. The "CPU average" meter does not show a frequency, only the individual per-CPU meters.
* | Added option to enable/disable the mouse.MartinJM2019-07-121-1/+2
|/
* Mark some things as constRichard2017-07-221-1/+1
| | | | | | | Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const.

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