summaryrefslogtreecommitdiff
path: root/usr.bin/systat/keyboard.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-04-15 16:25:09 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-04-15 16:25:09 +0000
commitfafe12b264b5566f2d05f7829cbf618331845452 (patch)
tree7589f5de7dfe7e5f69ff03f4998957e8d534110a /usr.bin/systat/keyboard.c
parent16e6368fcf48fd35bd3e11b2182df10002365362 (diff)
allow systat(1) to be exited with 'q' like top(1).
ok beck@ ckuethe@ hshoexer@ millert@
Diffstat (limited to 'usr.bin/systat/keyboard.c')
-rw-r--r--usr.bin/systat/keyboard.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/systat/keyboard.c b/usr.bin/systat/keyboard.c
index dc3511cf8d0..03b85760af2 100644
--- a/usr.bin/systat/keyboard.c
+++ b/usr.bin/systat/keyboard.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keyboard.c,v 1.18 2006/03/31 04:10:59 deraadt Exp $ */
+/* $OpenBSD: keyboard.c,v 1.19 2007/04/15 16:25:08 matthieu Exp $ */
/* $NetBSD: keyboard.c,v 1.2 1995/01/20 08:51:59 jtc Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)keyboard.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: keyboard.c,v 1.18 2006/03/31 04:10:59 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: keyboard.c,v 1.19 2007/04/15 16:25:08 matthieu Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -109,6 +109,9 @@ keyboard(void)
continue;
case ':':
break;
+ case 'q':
+ gotdie=1;
+ break;
default:
continue;
}