top: fix help text: with !TERMIOS, no keys are affected top output
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Dec 2016 11:09:50 +0000 (12:09 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Dec 2016 11:09:50 +0000 (12:09 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/top.c

index c66cdb764383699f67a6be88b5f9b2c0a3690ee8..71207bac17b44be0f73ca03597a5e041d882a0ab 100644 (file)
@@ -1042,7 +1042,9 @@ static unsigned handle_input(unsigned scan_mask, unsigned interval)
 //usage:       "Provide a view of process activity in real time."
 //usage:   "\n""Read the status of all processes from /proc each SECONDS"
 //usage:   "\n""and display a screenful of them."
-//usage:   "\n""Keys:"
+//usage:   "\n"
+//usage:       IF_FEATURE_USE_TERMIOS(
+//usage:       "Keys:"
 //usage:   "\n""       N/M"
 //usage:                IF_FEATURE_TOP_CPU_USAGE_PERCENTAGE("/P")
 //usage:                IF_FEATURE_TOP_CPU_USAGE_PERCENTAGE("/T")
@@ -1062,6 +1064,7 @@ static unsigned handle_input(unsigned scan_mask, unsigned interval)
 //usage:   "\n""       Q,^C: exit"
 //usage:   "\n"
 //usage:   "\n""Options:"
+//usage:       )
 //usage:   "\n""       -b      Batch mode"
 //usage:   "\n""       -n N    Exit after N iterations"
 //usage:   "\n""       -d N    Delay between updates"