From 1a8f56dd3a0ba26191c764c65b489e5c02f967b3 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 10 Jun 2018 09:04:56 +0000 Subject: [PATCH] top(1): add command aliases; correct dumb support --- usr.bin/top/commands.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/top/commands.c b/usr.bin/top/commands.c index 1bbe93b87e92..9dcd8117e9f9 100644 --- a/usr.bin/top/commands.c +++ b/usr.bin/top/commands.c @@ -56,14 +56,17 @@ static const struct command all_commands[] = {'d', "change number of displays to show", false}, {'e', "list errors generated by last \"kill\" or \"renice\" command", false}, {'H', "toggle the displaying of threads", false}, - {'h', "show this help text", false}, + {'h', "show this help text", true}, + {'?', "show this help text", true}, {'i', "toggle the displaying of idle processes", false}, + {'I', "toggle the displaying of idle processes", false}, {'j', "toggle the displaying of jail ID", false}, {'J', "display processes for only one jail (+ selects all jails)", false}, {'k', "kill processes; send a signal to a list of processes", false}, - {'q', "quit" , false}, + {'q', "quit" , true}, {'m', "toggle the display between 'cpu' and 'io' modes", false}, {'n', "change number of processes to display", false}, + {'#', "change number of processes to display", false}, {'o', "specify the sort order", false}, {'p', "display one process (+ selects all processes)", false}, {'P', "toggle the displaying of per-CPU statistics", false},