From 2a025bf4c610448ecd9b8a56d0e15daa92445c4a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 16 Nov 2006 15:20:44 +0000 Subject: [PATCH] Add information about the status column (which I always forget) in the help page --- htop.c | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/htop.c b/htop.c index ca39f6a5..3fb72c98 100644 --- a/htop.c +++ b/htop.c @@ -93,35 +93,36 @@ void showHelp(ProcessList* pl) { addattrstr(CRT_colors[BAR_BORDER], "]"); attrset(CRT_colors[DEFAULT_COLOR]); mvaddstr(6,0, "Type and layout of header meters are configurable in the setup screen."); + mvaddstr(7, 0, "Status: R: running; S: sleeping; T: traced/stopped; Z: zombie; D: disk sleep"); - mvaddstr( 8, 0, " Arrows: scroll process list F5 t: tree view"); - mvaddstr( 9, 0, " Digits: incremental PID search u: show processes of a single user"); - mvaddstr(10, 0, " F3 /: incremental name search H: hide/show user threads"); - mvaddstr(11, 0, " K: hide/show kernel threads"); - mvaddstr(12, 0, " Space: tag processes F: cursor follows process"); - mvaddstr(13, 0, " U: untag all processes"); - mvaddstr(14, 0, " F9 k: kill process/tagged processes P: sort by CPU%"); - mvaddstr(15, 0, " + [ F7: lower priority (+ nice) M: sort by MEM%"); - mvaddstr(16, 0, " - ] F8: higher priority (root only) T: sort by TIME"); - mvaddstr(17, 0, " F4 I: invert sort order"); - mvaddstr(18, 0, " F2 S: setup F6 >: select sort column"); - mvaddstr(19, 0, " F1 h: show this help screen"); - mvaddstr(20, 0, " F10 q: quit s: trace syscalls with strace"); + mvaddstr( 9, 0, " Arrows: scroll process list F5 t: tree view"); + mvaddstr(10, 0, " Digits: incremental PID search u: show processes of a single user"); + mvaddstr(11, 0, " F3 /: incremental name search H: hide/show user threads"); + mvaddstr(12, 0, " K: hide/show kernel threads"); + mvaddstr(13, 0, " Space: tag processes F: cursor follows process"); + mvaddstr(14, 0, " U: untag all processes"); + mvaddstr(15, 0, " F9 k: kill process/tagged processes P: sort by CPU%"); + mvaddstr(16, 0, " + [ F7: lower priority (+ nice) M: sort by MEM%"); + mvaddstr(17, 0, " - ] F8: higher priority (root only) T: sort by TIME"); + mvaddstr(18, 0, " F4 I: invert sort order"); + mvaddstr(19, 0, " F2 S: setup F6 >: select sort column"); + mvaddstr(20, 0, " F1 h: show this help screen"); + mvaddstr(21, 0, " F10 q: quit s: trace syscalls with strace"); attrset(CRT_colors[HELP_BOLD]); - mvaddstr( 8, 0, " Arrows"); mvaddstr( 8,40, " F5 t"); - mvaddstr( 9, 0, " Digits"); mvaddstr( 9,40, " u"); - mvaddstr(10, 0, " F3 /"); mvaddstr(10,40, " H"); - mvaddstr(11,40, " K"); - mvaddstr(12, 0, " Space"); mvaddstr(12,40, " F"); - mvaddstr(13, 0, " U"); - mvaddstr(14, 0, " F9 k"); mvaddstr(14,40, " P"); - mvaddstr(15, 0, " + [ F7"); mvaddstr(15,40, " M"); - mvaddstr(16, 0, " - ] F8"); mvaddstr(16,40, " T"); - mvaddstr(17,40, " F4 I"); - mvaddstr(18, 0, " F2 S"); mvaddstr(18,40, " F6 >"); - mvaddstr(19, 0, " F1 h"); - mvaddstr(20, 0, " F10 q"); mvaddstr(20,40, " s"); + mvaddstr( 9, 0, " Arrows"); mvaddstr( 9,40, " F5 t"); + mvaddstr(10, 0, " Digits"); mvaddstr(10,40, " u"); + mvaddstr(11, 0, " F3 /"); mvaddstr(11,40, " H"); + mvaddstr(12,40, " K"); + mvaddstr(13, 0, " Space"); mvaddstr(13,40, " F"); + mvaddstr(14, 0, " U"); + mvaddstr(15, 0, " F9 k"); mvaddstr(15,40, " P"); + mvaddstr(16, 0, " + [ F7"); mvaddstr(16,40, " M"); + mvaddstr(17, 0, " - ] F8"); mvaddstr(17,40, " T"); + mvaddstr(18,40, " F4 I"); + mvaddstr(19, 0, " F2 S"); mvaddstr(19,40, " F6 >"); + mvaddstr(20, 0, " F1 h"); + mvaddstr(21, 0, " F10 q"); mvaddstr(21,40, " s"); attrset(CRT_colors[DEFAULT_COLOR]); attrset(CRT_colors[HELP_BOLD]);