Benny Baumann
c49ca61dd9
Common order for ESC/q/F10
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
45869513bf
Embracing branches
5 years ago
Benny Baumann
61e14d4bb2
Spacing around operators
5 years ago
Christian Göttsche
f8208f2173
Drop tabs in source indentions
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
Benny Baumann
872e542f4e
Rename StringUtils.[ch] to XUtils.[ch]
5 years ago
Christian Göttsche
41eea8a355
Mark process argument of Process_isThread const
6 years ago
ryenus
ff455b0004
limit max screen title length to window width
...
Applies screen title truncating to all InfoScreen classes.
6 years ago
Christian Göttsche
8efc88593a
InfoScreen: update content on resize
6 years ago
Christian Göttsche
843949131a
Drop redundant casts to the same type
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
Christian Göttsche
df41979afc
Ignore wmove return value
...
Found by Coverity
6 years ago
Christian Göttsche
11f558f934
Avoid discarding const qualifiers
6 years ago
Nathan Scott
36ef4d4fb6
Resolve compilation warning relating to dangling else in InfoScreen_run
6 years ago
Jorge Pereira
8de04986cf
Fix misleading indentation
6 years ago
Daniel Flanagan
dd33444f7e
Clean up existing whitespace
6 years ago
wurongxin
a360a80d16
fix a bug about use of unitialised variable. refer to https://github.com/hishamhm/htop/issues/882
7 years ago
Hisham Muhammad
8c653212c0
Replace size_t with int/void* union
...
I was occasionally passing negative values to size_t.
Plus, this better reflects the intent of the variant argument.
Reported by Coverity:
https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500
8 years ago
Richard
d5faf64374
Mark some things as const
...
Several string pointer arrays pointed to const strings
but were not const themselves.
A few various structures and arrays were also marked const.
9 years ago
Hisham
7f9c82f28d
Refresh whole panel on Ctrl+L in infoscreen.
...
Closes #520 .
10 years ago
Hisham
645057d81a
Use set_escdelay() to avoid problems with ESCDELAY as a macro.
10 years ago
Hisham
c23d4f12d1
Fix behavior of ESC key, getting rid of the annoying delay.
...
Thank you @Explorer09 for the push!
Closes #417 .
10 years ago
Hisham Muhammad
466d4da0c6
refactor *Screen classes, add InfoScreen superclass
10 years ago