summaryrefslogtreecommitdiffstats
path: root/contrib/top/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/top/top.c')
-rw-r--r--contrib/top/top.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/top/top.c b/contrib/top/top.c
index 9508e47..7c5d09c 100644
--- a/contrib/top/top.c
+++ b/contrib/top/top.c
@@ -194,9 +194,9 @@ char *argv[];
fd_set readfds;
#ifdef ORDER
- static char command_chars[] = "\f qh?en#sdkriIutHmo";
+ static char command_chars[] = "\f qh?en#sdkriIutHmSo";
#else
- static char command_chars[] = "\f qh?en#sdkriIutHm";
+ static char command_chars[] = "\f qh?en#sdkriIutHmS";
#endif
/* these defines enumerate the "strchr"s of the commands in command_chars */
#define CMD_redraw 0
@@ -218,8 +218,9 @@ char *argv[];
#define CMD_selftog 15
#define CMD_thrtog 16
#define CMD_viewtog 17
+#define CMD_viewsys 18
#ifdef ORDER
-#define CMD_order 18
+#define CMD_order 19
#endif
/* set the buffer for stdout */
@@ -1002,6 +1003,9 @@ restart:
d_header = i_header;
reset_display();
break;
+ case CMD_viewsys:
+ ps.system = !ps.system;
+ break;
#ifdef ORDER
case CMD_order:
new_message(MT_standout,
OpenPOWER on IntegriCloud