aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top/commands.c
diff options
context:
space:
mode:
authorJohn Grafton <john.grafton@gmail.com>2021-06-16 19:40:21 +0000
committerWarner Losh <imp@FreeBSD.org>2021-06-29 23:51:18 +0000
commita00d703f2f438b199d3933d19d535540586b7792 (patch)
tree5c0c01b26ca24aabaf8249640e1937c05052af2a /usr.bin/top/commands.c
parent0d9e8c286df6cdda1fe53baf3339f0db7acdaafd (diff)
downloadsrc-a00d703f2f438b199d3933d19d535540586b7792.tar.gz
src-a00d703f2f438b199d3933d19d535540586b7792.zip
top(1): support command name and argument grepping
Obtained from: OpenBSD Reviewed by: imp@ Pull Request: https://github.com/freebsd/freebsd-src/pull/479
Diffstat (limited to 'usr.bin/top/commands.c')
-rw-r--r--usr.bin/top/commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/top/commands.c b/usr.bin/top/commands.c
index 88f4b0867d47..9efc693020ba 100644
--- a/usr.bin/top/commands.c
+++ b/usr.bin/top/commands.c
@@ -59,6 +59,7 @@ const struct command all_commands[] =
{'H', "toggle the displaying of threads", false, CMD_thrtog},
{'h', "show this help text", true, CMD_help},
{'?', NULL, true, CMD_help},
+ {'/', "filter on command name (+ selects all commands)", false, CMD_grep},
{'i', "toggle the displaying of idle processes", false, CMD_idletog},
{'I', NULL, false, CMD_idletog},
{'j', "toggle the displaying of jail ID", false, CMD_jidtog},