Benny Baumann
6490590dc8
Relocate include of config.h from header to source modeule
2 years ago
Hisham Muhammad
72ba20fa5f
Introduce screen tabs
...
This is a forward port (by nathans) of Hisham's original code.
4 years ago
Christian Göttsche
53732ab0bb
Resolve -Wimplicit-int-conversion warnings
...
Panel.c:414:49: error: implicit conversion loses integer precision: 'int' to 'short' [-Werror,-Wimplicit-int-conversion]
this->scrollH = MAXIMUM(this->selectedLen - this->w, 0);
~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~
./Macros.h:11:54: note: expanded from macro 'MAXIMUM'
#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
^
IncSet.c:159:38: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion]
mode->buffer[mode->index] = ch;
~ ^~
Panel.c:456:24: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion]
buffer[len] = ch;
~ ^~
Panel.c:473:22: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion]
buffer[0] = ch;
~ ^~
5 years ago
Daniel Lange
94ad111391
Update license headers to explicitly say GPLv2+
5 years ago
Christian Göttsche
2bf626c4e4
IWYU update
5 years ago
Christian Göttsche
68f2bfea61
Abstract resize handling by adding a new Htop reaction
5 years ago
Christian Göttsche
d72b0a682e
Mark several non-modified pointer variables const
5 years ago
Christian Göttsche
ce9e7fd14f
Panel_new: reorder arguments
...
Reorder owner and type so they match the order of Panel_init
5 years ago
Christian Göttsche
a3cced9fb6
Add option to hide the Function Bar
...
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
5 years ago
Christian Göttsche
86d2931255
Restore highlighted header of current sorted process column
5 years ago
Christian Göttsche
e3862aa67e
Rework drawing of FunctionBar
...
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
5 years ago
Christian Göttsche
19b5141685
Hide process selection on ESC
...
Do not highlight the current process line after pressing ESC in the main
screen.
Restore after pressing any key.
5 years ago
Benny Baumann
61e14d4bb2
Spacing around operators
5 years ago
Benny Baumann
0a51eae11f
Spacing after keywords (while)
5 years ago
Benny Baumann
1877325329
Spacing after keywords (#define)
5 years ago
Christian Göttsche
8c1f5c5a6f
Enclose macro arguments in parentheses
5 years ago
Benny Baumann
0f5262917f
Make all required includes explicit
...
Information as seen by IWYU 0.12 + clang 9 on Linux
5 years ago
Christian Göttsche
ba282cfe19
Mark Object instances const
6 years ago
Christian Göttsche
08d85e6143
Mark Object classes and Object class fields const
6 years ago
Daniel Lange
079c2abf8e
Update License consistently to GPLv2 as per COPYING file
6 years ago
Benny Baumann
e1c96879f4
Sort headers/includes
6 years ago
Christian Göttsche
f3b4e248a3
Drop unused variable
6 years ago
Nathan Scott
c5808c56db
Consolidate repeated macro definitions into one header
...
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.
6 years ago
Nathan Scott
8ec5d4a3a0
Further, minor cleanups to headers post-MakeHeaders
...
Remove leftover empty ifdef/endif pairs, whitespace.
The generated htop.h file was also unused - removed.
6 years ago
Zev Weiss
7b7822b896
Remove superfluous 'extern's from function declarations.
...
Applied via:
$ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} +
Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
6 years ago
Zev Weiss
a1a027b9bd
Axe automated header generation.
...
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.
6 years ago
Nathan Scott
728b04bbb5
Merge branch 'ci-hwloc-job' of https://github.com/bertwesarg/htop into bertwesarg-ci-hwloc-job
6 years ago
Nathan Scott
7ac1c709b7
Re-generate all headers with latest scripts/MakeHeader.py
...
Sync-up missing extern declarations for many functions.
6 years ago
Hisham
0128d222b9
Added Ctrl+A and Ctrl+E to go to beginning and end of line.
...
(Also, '^' and '$')
Closes #508 .
10 years ago
Hisham Muhammad
b1f934c5d5
Visual tweaks: change color when following, add Broken Gray theme.
11 years ago
Hisham Muhammad
5320bab202
Cleanup unused field.
11 years ago
Hisham Muhammad
a93db5234c
handle clicks on panel header line
11 years ago
Hisham Muhammad
ade7993fcb
incremental search and filter reintegrated!
11 years ago
Hisham Muhammad
d0c72c3fb2
Move FunctionBar inside Panel
11 years ago
Hisham Muhammad
09c7152990
Refactor state control variables.
11 years ago
Hisham Muhammad
d7c843c23b
Complete cursor-based movement of headers.
11 years ago
Hisham Muhammad
c2108e5a48
Another mega-patch for the refactoring process.
...
Kinda runs, but functionality from the original main loop
is still missing. Patience.
11 years ago
Hisham Muhammad
3383d8e556
Sorry about the mega-patch.
...
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
11 years ago
Hisham Muhammad
6d90e58c01
alignment improvements
12 years ago
Hisham Muhammad
00b324bfc1
Changes in object model: separate class objects to store vtable. Also, nicer UTF-8 display of big numbers.
13 years ago
Hisham Muhammad
84281bdc44
major header cleanup
14 years ago
Hisham Muhammad
7ca1081712
Mega-commit with features and tweaks for 1.0:
...
* Performance improvements
* Support for splitting CPU meters into two or four columns
(thanks to Wim Heirman)
* Switch from PLPA, which is now deprecated, to HWLOC.
* Bring back support for native Linux sched_setaffinity,
so we don't have to use HWLOC where we don't need to.
* Support for typing in user names and column fields in selection panels.
15 years ago
Hisham Muhammad
e204861de5
Allow typing to select items in various panels (sort, user, signal).
...
Factored code from the SignalsPanel to apply to all selections from main screen.
Closes feature request #3425304 .
15 years ago
Hisham Muhammad
300caa076e
Tempus fugit.
15 years ago
Hisham Muhammad
d8e1480a27
Remove arbitrary limit from rich strings
...
Fix subtree hiding
Fix reading of CPU values in hidden threads
Fix hiding of zombie processes as kernel threads
Remove "debug proc" code
Code cleanup in processElements
16 years ago
Hisham Muhammad
b4a63409f5
* Add Bash/emacs style navigation keys
...
(thanks to Daniel Schuler)
16 years ago
Hisham Muhammad
a600d5a6e9
Tempus fugit.
16 years ago
Hisham Muhammad
02a30bfecd
warning fixes
16 years ago
Hisham Muhammad
6330ff3a0a
changes for htop 0.8.2
17 years ago
Hisham Muhammad
5ed2b85c84
Make clicks on leftmost panel in the Setup screen change setup pages,
...
like the keyboard navigation does. Fixes bug reported by Tero Keinanen.
https://sourceforge.net/tracker/index.php?func=detail&aid=1754735&group_id=108839&atid=651633
18 years ago