summaryrefslogtreecommitdiffstats
path: root/ScreensPanel.c
Commit message (Collapse)AuthorAgeFilesLines
* Update includes based on IWYUBenny Baumann2023-12-261-1/+2
|
* Fix code styleBenny Baumann2023-12-261-61/+46
|
* Add includes for config.h as per the discussion in PR #1337Daniel Lange2023-12-261-0/+2
| | | | | | Many thanks to @Explorer09 Kang-Che Sung (宋岡哲). Also add a #error stanza to XUtils.h in case somebody forgets the beautiful mess GNU forces on us.
* Fix leak in ScreensPanelChristian Göttsche2023-08-301-2/+1
|
* Support dynamic screens with 'top-most' entities beyond processesSohaib Mohamed2023-08-301-11/+12
| | | | | | | | | | | | | | | | | | | | | | 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>
* ScreenPanel: handle quitting panel while renamingChristian Göttsche2022-12-161-5/+11
| | | | | | | | | During renaming the ScreenPanel takes ownership of the text value of the screen entries ListItem (via its saved member) and replaces the pointer in the ListItem with a pointer to the ScreenPanel's static text buffer. Restore the ownership, similar to how it's done on ESC. Fixes: #1147
* Reformat code baseBenny Baumann2022-10-241-3/+3
| | | | | | | | | | | | | | This includes: - Wrap function implementations - Pointer alignment for function signatures - Pointer alignment for variable declarations - Whitespace after keywords - Whitespace after comma - Whitespace around initializers - Whitespace around operators - Code indentation - Line break for single line statements - Misleading alignment
* Reset ss and ssIndex Settings fields after screen removalNathan Scott2022-07-261-4/+10
| | | | | | | | | | In the situation where the currently displayed screen is removed we could end up with an invalid ss pointer (and associated index) in the global Settings structure. Any subsequent access to these fields would make an invalid pointer dereference. Fixes: #1053
* Refactor code for rendering command line cacheBenny Baumann2022-05-311-0/+1
| | | | Fixes #1008
* Make sure License is correctly specified as GNU GPLv2+ in some more file headersDaniel Lange2022-03-141-1/+2
|
* Set correct default sorting directionChristian Göttsche2021-12-171-1/+1
| | | | | Respect the field option defaultSortDesc for the default screen sort direction, e.g. for CPU%.
* ScreenPanels: free ScreenSettings of deleted screensChristian Göttsche2021-12-081-1/+18
|
* ScreenPanel: misc updatesChristian Göttsche2021-12-081-7/+7
| | | | | - use ASCII escape sequences - use array allocation wrappers
* fix CI issueSohaib Mohamed2021-12-071-1/+1
| | | | Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
* Fix misc styleguide issues and add missing header filesSohaib Mohamed2021-12-071-5/+6
| | | | Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
* Pass correct ColorElements values to Panel_setSelectionColorSohaib Mohamed2021-12-071-4/+4
|
* Introduce screen tabsHisham Muhammad2021-12-071-0/+308
This is a forward port (by nathans) of Hisham's original code.

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