top: Actually implement DragonFly code for the interactive 'c' command.
authorImre Vadász <imre@vdsz.com>
Tue, 10 Nov 2015 21:18:28 +0000 (22:18 +0100)
committerImre Vadász <imre@vdsz.com>
Tue, 10 Nov 2015 22:02:02 +0000 (23:02 +0100)
commitea03a758f244a3ff294b82ff1804bb8966b8bca6
tree92084016309eeaa8db5f7a6e3b165bd7ed2bf27c
parentd68d5d5722cdf3590e512dcdfe90936f3a570f7e
top: Actually implement DragonFly code for the interactive 'c' command.

Using the 'c' command now allows filtering displayed processes by
command name, as documented in top(1). Filtering by command name displays
only processes whose command contains the given substring.
This matches thte behaviour of the 'g' option in OpenBSD's top.

Using 'c' again and just pressing enter without entering a command name,
disables filtering and displays all processes again.
usr.bin/top/m_dragonfly.c