summaryrefslogtreecommitdiffstats
path: root/Panel.c
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace around operatorsBenny Baumann2021-07-151-1/+1
|
* RichString: do not unnecessarily clean whole bufferChristian Göttsche2021-03-171-4/+4
| | | | | | | The local stack buffer does not need to be cleaned to zeros when - just initialized, cause the length is set to 0 and the first character is set to '\0', so all printing functions will safely stop - no further used, i.e. the variable goes out of scope
* Improve handling when selected last process entryChristian Göttsche2021-01-311-2/+2
| | | | | | | | If the last process entry is selected and the process dies, stay at the end of the list and do not jump to the start. Also if the last entry is selected keep, after rebuilding the process list due to a new scan, the last entry selected.
* Mark several non-modified pointer variables constChristian Göttsche2021-01-111-5/+5
|
* Panel_new: reorder argumentsChristian Göttsche2021-01-041-1/+1
| | | | Reorder owner and type so they match the order of Panel_init
* Add option to hide the Function BarChristian Göttsche2021-01-041-3/+6
| | | | | | | | | | 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
* Panel: rework hight logicChristian Göttsche2021-01-041-20/+17
| | | | | | | The hight of a Panel dpends on whether the Panel has a header or not. Also the header migth not be set on Panel creation, like in the MainPanel. This currently causes the cursor to get hidden behind the FunctionBar on down-scrolling.
* Restore highlighted header of current sorted process columnChristian Göttsche2020-12-231-12/+10
|
* Merge branch 'misc' of https://github.com/cgzones/htop into cgzones-miscChristian Göttsche2020-12-221-0/+1
|\
| * Panel_init: initialize selectedLen memberChristian Göttsche2020-12-211-0/+1
| |
* | Rework drawing of FunctionBarChristian Göttsche2020-12-201-7/+18
|/ | | | | | | | | | | 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
* Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche2020-12-081-1/+1
| | | | | | | | RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
* Allow to pass '/' for item searchBenny Baumann2020-12-031-1/+1
|
* Handle 'q' as quit if first characterBenny Baumann2020-12-031-0/+11
|
* Some visual code cleanupBenny Baumann2020-12-031-2/+14
|
* Use common handling for scrollingBenny Baumann2020-12-031-8/+10
|
* Reduce code duplicationBenny Baumann2020-12-031-8/+6
|
* Hide process selection on ESCChristian Göttsche2020-11-281-2/+2
| | | | | | Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
* Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processesDaniel Lange2020-11-161-5/+7
|\
| * Highlight new and old processes (#74)Adam Saponara2020-10-301-5/+7
| |
* | Embracing branchesBenny Baumann2020-11-021-7/+15
| |
* | Spacing around operatorsBenny Baumann2020-11-021-5/+5
| |
* | Whitespace and indentation issuesBenny Baumann2020-11-021-2/+2
| |
* | Spacing after keywords (for)Benny Baumann2020-11-021-1/+1
| |
* | Assert Vector_get returns an objectChristian Göttsche2020-11-021-2/+0
|/ | | | | It is generally assumed Vector_get returns a non-NULL object. Use a generic assert in Vector_get instead of in callers.
* Avoid some unnecessary casts and mark some not changing variables constChristian Göttsche2020-10-271-1/+1
|
* Make all required includes explicitBenny Baumann2020-10-181-7/+10
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
|
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Mark Object classes and Object class fields constChristian Göttsche2020-10-071-2/+2
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Call character checking function with unsigned charChristian Göttsche2020-09-171-1/+1
| | | | See https://wiki.sei.cmu.edu/confluence/display/c/STR37-C.+Arguments+to+character-handling+functions+must+be+representable+as+an+unsigned+char
* Clean up some code duplication in the header filesHugo Musso Gualandi2020-09-121-2/+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.
* Consolidate repeated macro definitions into one headerNathan Scott2020-09-091-17/+10
| | | | | | | | The MIN, MAX, CLAMP, MINIMUM, and MAXIMUM macros appear throughout the codebase with many re-definitions. Make a single copy of each in a common header file, and use the BSD variants of MINIMUM/MAXIMUM due to conflicts in the system <sys/param.h> headers.
* 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.
* Axe automated header generation.Zev Weiss2020-09-031-54/+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.
* Merge branch 'ci-hwloc-job' of https://github.com/bertwesarg/htop into ↵Nathan Scott2020-08-261-0/+8
| | | | bertwesarg-ci-hwloc-job
* Clean up existing whitespaceDaniel Flanagan2019-10-311-2/+2
|
* Handle unexpected values for character passed to isalnumHisham Muhammad2018-02-051-1/+1
| | | | | | | It seems that certain negative integer values can crash isalnum(). Let's protect against those. Fixes #711.
* Fix scrolling behavior change caused by 759caf0fExplorer092016-08-071-2/+3
| | | | | | | | | | | | | | | | Commit "Make PgDown behavior more usual." 759caf0f8fa593430adea676fc64612b5197dca8 silently changes the PageDown scrolling behavior that, instead of scrolling one window down until the end of the window touches the end of the list, the window simply repositions itself in a way that the selected item always become the last item in the new window. The commit reverts the behavior, and also fixes sanity conditionals so that the scrollV variable will _never_ become negative or out-of- bound. Fixes issue #532. Also keep the problem #480 addressed. Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
* Moving left and right needs a full redraw.Hisham2016-06-191-0/+2
|
* Added Ctrl+A and Ctrl+E to go to beginning and end of line.Hisham2016-06-151-9/+17
| | | | | (Also, '^' and '$') Closes #508.
* Make PgDown behavior more usual.Hisham2016-05-041-1/+1
| | | | Closes #480.
* Fix behavior of Panel on empty lists.Hisham2016-02-181-1/+1
| | | | Closes #370.
* Check for failure in allocations.Hisham2016-02-021-2/+2
|
* Fix moving of metersHisham Muhammad2015-11-021-1/+1
|
* fix calloc() callsChristian Hesse2015-09-071-1/+1
| | | | | | | * size_t nmemb (number of elements) first, then size_t size * do not assume char is size 1 but use sizeof() * allocate for char, not pointer to char (found by Michael McConville, fixes #261)
* Don't select last item when clicking past the end of the panel.Hisham Muhammad2015-08-271-1/+4
|
* Support for NCurses 6.0 and mouse wheelHisham Muhammad2015-08-191-0/+15
|
* Rename String to StringUtils.David Hunt2015-08-191-1/+1
| | | | | | | | | Fixes building on case-insensitive filesystems where String.h gets confused with <string.h>. From d734dacea0a10d0465dad4e95b3421511e7da112 Mon Sep 17 00:00:00 2001 From: David Hunt <dhunt@iolanthe.attlocal.net> Date: Sat, 11 Jul 2015 20:56:31 -0500 Subject: [PATCH 1/8] Rename String to StringUtils

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