summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-09-16Protect against strange values of SIGRTMIN and SIGRTMAX,Hisham
and change alignment of numbers.
2016-09-16Merge pull request #551 from Explorer09/rt-signalsHisham Muhammad
Real-time signals support (kill command)
2016-09-14Real-time signals support (for kill command)Explorer09
SignalsPanel_new now fetches SIGRTMIN and SIGRTMAX and generates real- time signals entries at runtime. All signals between SIGRTMIN and SIGRTMAX are written in "SIGRTMIN+n" notation, per discussion in pull request #551. Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
2016-09-11Merge branch 'master' of https://github.com/hishamhm/htopHisham
2016-09-11Downgrade requirement to Libtool 2.4.0.Hisham
Courtesy to OpenWRT environments as requested by @champtar in #540.
2016-09-06Merge pull request #555 from ivan/masterHisham Muhammad
Fix column misalignment for priority -101 threads
2016-09-06Fix column misalignment for priority -101 threadsIvan Kozik
BFS-patched kernels can have kernel threads with priority -101. This change makes priority -101 display as "RT", just like priority -100. Related: https://github.com/hishamhm/htop/issues/314
2016-08-30Merge branch 'master' of https://github.com/hishamhm/htopHisham
2016-08-30Fix typos, by @Gelma.Hisham
Closes #546.
2016-08-30Merge pull request #550 from Explorer09/signals-tweaksHisham Muhammad
Mark signal tables 'const'
2016-08-30Mark signal tables 'const'Explorer09
Specifically, Platform_signals[] and Platform_numberOfSignals. Both are not supposed to be mutable. Marking them 'const' puts them into rodata sections in binary. And for Platform_numberOfSignals, this aids optimization (aids only Link Time Optimization for now). :) Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2016-08-24free(NULL) is a valid no-op, so let's make String_freeArray(NULL) valid too.Hisham
2016-08-24Return when reading cmdline fails (e.g. zombie process)Hisham
2016-08-23Point users to the official release tarballs.Hisham
2016-08-11Merge pull request #537 from Explorer09/string-utilsHisham Muhammad
Optimize Strings_startWith()
2016-08-11Optimize Strings_startWith()Explorer09
Use strncmp() combined with a strlen() will give better performance than a strstr in worst case. Especially when the match prefix is a constant and not a variable. While we are at it, replace the match() function in linux/Battery.c, which uses a naive algorithm, with a macro that does better job by utilizing Strings_startWith(). $ gcc --version | head -n 1 gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 $ uname -m x86_64 $ size htop.old htop.new text data bss dec hex filename 137929 15112 3776 156817 26491 htop.old 137784 15104 3776 156664 263f8 htop.new Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
2016-08-09Merge pull request #534 from Explorer09/issue-532Hisham Muhammad
Change scrolling behavior to make it more similar to other applications.
2016-08-07Fix scrolling behavior change caused by 759caf0fExplorer09
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>
2016-07-28Merge branch 'master' of https://github.com/hishamhm/htopHisham
2016-07-28'Follow' only if element is found in searchHisham
2016-07-23Merge pull request #526 from Explorer09/bar-tweaksHisham Muhammad
Let BarMeterMode_characters[] be const array.
2016-07-22Let BarMeterMode_characters[] be const array.Explorer09
2016-07-21Changelog for htop 2.0.22.0.2Hisham
2016-07-21Preparing release 2.0.2, a minor bugfix release.Hisham
2016-07-12Merge pull request #524 from ricardo0y/cross_compile_with_ncurses_configHisham Muhammad
Allow to override ncurses*-config path
2016-07-11Allow to override ncurses*-config pathRicardo Martincoski
This will be used when cross-compiling with ncurses*-config generated for the target, using constructs like HTOP_NCURSES_CONFIG_SCRIPT=/path/to/ncurses5-config Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
2016-06-23Refresh whole panel on Ctrl+L in infoscreen.Hisham
Closes #520.
2016-06-20Let's keep it simple then!Hisham
2016-06-19Dynamically adjust the size of line readsHisham Muhammad
* Dynamically adjust the size of line reads. * Remove some more uses of fgets with arbitrary sizes. * Fix reading of lines and width of n column. Fixes #514.
2016-06-19While we're at it, get rid of another sprintf.Hisham
2016-06-19Moving left and right needs a full redraw.Hisham
2016-06-17Use "-" as the Ctrl and Alt joiner.Hisham
2016-06-17Merge pull request #511 from Explorer09/man-pageHisham Muhammad
Document Alt+{h,j,k,l} and Ctrl+{A,E} into man page
2016-06-17Document Alt+{h,j,k,l} and Ctrl+{A,E} into man pageExplorer09
Rewrite the scrolling part in the man page so that each key become clearer on what it does. Also officially document the Alt+{h,j,k,l} key alternatives and Ctrl+A, Ctrl+E, '^', '$' keys (see issue #508).
2016-06-15Merge branch 'master' of https://github.com/hishamhm/htopHisham
2016-06-15Added Ctrl+A and Ctrl+E to go to beginning and end of line.Hisham
(Also, '^' and '$') Closes #508.
2016-06-15Don't store invisible trailing whitespaceHisham
2016-06-04Merge pull request #505 from Explorer09/xStrdupHisham Muhammad
Fix xStrdup debug build failure & allow Clang to use ((nonnull))
2016-06-03Fix xStrdup debug build failure & allow Clang to use ((nonnull))Explorer09
2016-06-02Merge pull request #504 from Explorer09/xStrdupHisham Muhammad
Fixes upon xStrdup(NULL) problem
2016-06-02Add assert and __attribute__((nonnull)) on xStrdupExplorer09
__attribute__((nonnull)) will help catching "calling with NULL" mistake on compile time. I also convert xStrdup into a macro, that will do assert() inline when the code is *not* built with -DNDEBUG . For release builds (with -DNDEBUG), preprocessor trick will ensure that generated code remains the same.
2016-06-02Don't check if (!str) in xStrdupExplorer09
This effectively reverts "Stricter strdup." 4674b4a7320bb6b003a4e3b3840027573691e60d If str is NULL upon the calling of strdup(), it should crash with SIGSEGV. Just let it crash. Adding the "if (!str) fail();" code serves nothing but bloat.
2016-05-30Merge branch 'master' of https://github.com/hishamhm/htopHisham
2016-05-30Handle SIGQUIT. Closes #503.Hisham
2016-05-30Remove extra checks made redundant by XAlloc.Hisham
2016-05-30Stricter strdup.Hisham
2016-05-30Silence cast warning.Hisham
2016-05-27Merge pull request #500 from Explorer09/meter-tweaksHisham Muhammad
Remove redundant is-null checks on free(Meter.drawData)
2016-05-27Remove redundant is-null checks on free(Meter.drawData)Explorer09
2016-05-25Silence warnings about seteuid return value.Hisham
Closes #483.